Starting to stop tcp server 2, max. delay 1,7 seconds... 	24.1.2022 	00:03:00 	_lx_SERVER 	(9. tbl_ 8)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	24.1.2022 	00:03:00 	lx 	(5. palvelin)

closing socket '72'. 	24.1.2022 	00:03:00 	lx 	(5. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	24.1.2022 	00:03:00 	lx 	(5. palvelin)

closing socket '73'. 	24.1.2022 	00:03:00 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          8
poll.fd_count:        1
pollCount:            53936
pollInCount:          9
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   10956
totalBytesSent:       138619. 	24.1.2022 	00:03:00 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 77
. 	24.1.2022 	00:03:00 	lx 	(5. palvelin)

closing socket '77'. 	24.1.2022 	00:03:00 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x013ff2c230. 	24.1.2022 	00:03:00 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x013ff2c230, size: 400. 	24.1.2022 	00:03:00 	lx 	(5. palvelin)

--- server stopped ---. 	24.1.2022 	00:03:00 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x013ff2c230. 	24.1.2022 	00:03:00 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	24.1.2022 	00:03:01 	_lx_SERVER 	(5. palvelin)

Käynnisteään Tcp palvelin 2. 	24.1.2022 	00:03:05 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

  database connect time: 0.0003 seconds. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0155c80330, size: 400. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

All plugins have been loaded. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

--- server started in 0.0018 seconds, 2022-01-24 00:03:07, used memory 3115.7 kb --- 	 5. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	24.1.2022 	00:03:07 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-24 00:03:26
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 814
Content-Uncompressed-Length: 1188

LZ4. 	24.1.2022 	00:03:26 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	24.1.2022 	00:03:26 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	24.1.2022 	00:03:26 	lx 	(5. palvelin)

  database connect time: 0.0001 seconds. 	24.1.2022 	00:03:26 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	24.1.2022 	00:03:26 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:03:27 	_lx_ExecuteSqlNew 	(5. palvelin)

 1. answer time: 00:00:00.01364
  
SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id
 FROM sales_order so
 WHERE so.project_id <> ''
 ORDER BY so.sales_order_id DESC
 LIMIT 500. 	24.1.2022 	00:03:27 	lx 	(5. palvelin)

 -- tcp answer 1, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340549, 258889 remaining, total send time 1 µs. 	24.1.2022 	00:03:27 	lx 	(5. palvelin)

 -- tcp answer 1, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340549, 177229 remaining, total send time 1245 µs. 	24.1.2022 	00:03:27 	lx 	(5. palvelin)

 -- tcp answer 1, send result: -1, send count: 3, loop count: 5, bytes sent 244980 / 340549, 95569 remaining, total send time 2502 µs. 	24.1.2022 	00:03:27 	lx 	(5. palvelin)

 -- tcp answer 1, send result: -1, send count: 4, loop count: 7, bytes sent 326640 / 340549, 13909 remaining, total send time 3750 µs. 	24.1.2022 	00:03:27 	lx 	(5. palvelin)

 -- tcp answer 1, send count: 5, loop count: 8, bytes sent 340549 / 340549, 0 remaining, total send time 5026 µs. 	24.1.2022 	00:03:27 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	00:03:53 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	00:03:56 	_lx_ExecuteSqlNew 	(5. palvelin)

sql: Error -1, Duplicated key: 5911 on field Sales_Order_ID of table Sales_Order (dbmg 1115)
Cannot update new record in table Sales_Order of database Manageri_v19 (dbmg 1247)
Cannot save new record in table Sales_Order of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO sales_order
 (company_id, customer_order_number, currency_id, delivery_address, delivery_company_id, invoicing_address, invoicing_company_id, additional_data, notes, order_address, sales_order_id, state, type_, employee_id, sales_price_total, project_id, record_id, terms_of_payment_id, vat_total)
 VALUES ('7000', '', 'EUR', 'Automaatti K-Citymarket Nummela
Tuusankaari 1
03100 Nummela', '7000', 'Rautiainen Olli
Hopeasepäntie 9 as 3
04109 Nummela
0407460885, orau@windowslive.com', '7000', '{
  "id": 5911,
  "total": "20.50",
  "total_tax": "3.97",
  "shipping_lines": [
    {
      "taxes": [
        {
          "id": 1,
          "total": "1.452",
          "subtotal": ""
        }
      ],
      "total": "6.05",
      "meta_data": [
        {
          "key": "Tuotteet",
          "id": 53885,
          "value": "Serafil 20 Beige 0267 WR &times; 1"
        }
      ],
      "method_id": "matkahuolto",
      "instance_id": "5",
      "method_title": "Matkahuolto Lähellä-paketti",
      "total_tax": "1.45",
      "id": 7281
    }
  ],
  "number": "5911",
  "date_modified": "2021-10-08T07:01:57",
  "date_created": "2021-10-04T16:08:10",
  "customer_ip_address": "185.166.28.117",
  "order_key": "wc_order_5u5kiQdAERF01",
  "shipping_total": "6.05",
  "fee_lines": [],
  "shipping": {
    "state": "",
    "city": "Nummela",
    "address_1": "Hopeasepäntie 9 as 3",
    "company": "",
    "first_name": "Olli",
    "last_name": "Rautiainen",
    "country": "FI",
    "address_2": "",
    "postcode": "04109"
  },
  "date_created_gmt": "2021-10-04T13:08:10",
  "date_modified_gmt": "2021-10-08T04:01:57",
  "discount_tax": "0.00",
  "parent_id": 0,
  "shipping_tax": "1.45",
  "cart_tax": "2.52",
  "prices_include_tax": false,
  "billing": {
    "email": "orau@windowslive.com",
    "state": "",
    "city": "Nummela",
    "address_1": "Hopeasepäntie 9 as 3",
    "company": "",
    "first_name": "Olli",
    "last_name": "Rautiainen",
    "country": "FI",
    "phone": "0407460885",
    "postcode": "04109",
    "address_2": ""
  },
  "payment_method": "paytrail",
  "_links": {
    "self": [
      {
        "href": "https://shop.va-varuste.fi/wp-json/wc/v3/orders/5911"
      }
    ],
    "collection": [
      {
        "href": "https://shop.va-varuste.fi/wp-json/wc/v3/orders"
      }
    ]
  },
  "refunds": [],
  "coupon_lines": [],
  "tax_lines": [
    {
      "id": 7282,
      "compound": false,
      "meta_data": [],
      "label": "alv.",
      "tax_total": "2.52",
      "shipping_tax_total": "1.45",
      "rate_code": "FI-ALV.-1",
      "rate_id": 1
    }
  ],
  "payment_method_title": "Paytrail",
  "status": "completed",
  "date_paid": "2021-10-04T16:09:38",
  "date_paid_gmt": "2021-10-04T13:09:38",
  "date_completed": "2021-10-08T07:01:57",
  "customer_id": 0,
  "date_completed_gmt": "2021-10-08T04:01:57",
  "cart_hash": "7e27f29f09e9998f020ba75c1cd30fd0",
  "meta_data": [
    {
      "key": "is_vat_exempt",
      "id": 241915,
      "value": "no"
    },
    {
      "key": "_woo_carrier_agent_id",
      "id": 242117,
      "value": "6277"
    },
    {
      "key": "_woo_carrier_agent_meta",
      "id": 242119,
      "value": {
        "id": "6277",
        "city": "Nummela",
        "title": "Automaatti K-Citymarket Nummela",
        "street_address2": "",
        "distance": "0.1",
        "postcode": "03100",
        "country": "FI",
        "logo_url": "",
        "carrier": "matkahuolto",
        "street_address": "Tuusankaari 1"
      }
    },
    {
      "key": "_wc_matkahuolto",
      "id": 242120,
      "value": "O:8:\"stdClass\":9:{s:15:\"shipment_number\";s:13:\"MH230496941FI\";s:6:\"weight\";d:0.200000000000000011102230246251565404236316680908203125;s:8:\"packages\";s:1:\"1\";s:12:\"product_code\";s:2:\"80\";s:15:\"activation_code\";s:0:\"\";s:16:\"special_handling\";s:0:\"\";s:3:\"cod\";b:0;s:10:\"cod_amount\";N;s:13:\"cod_reference\";N;}"
    }
  ],
  "discount_total": "0.00",
  "customer_note": "",
  "line_items": [
    {
      "id": 7280,
      "total": "10.48",
      "meta_data": [],
      "total_tax": "2.52",
      "product_id": 2149,
      "subtotal_tax": "2.52",
      "tax_class": "",
      "sku": "RE_LASERA20B0267",
      "subtotal": "10.48",
      "name": "Serafil 20 Beige 0267 WR",
      "variation_id": 0,
      "price": 10.48,
      "taxes": [
        {
          "id": 1,
          "total": "2.5152",
          "subtotal": "2.5152"
        }
      ],
      "quantity": 1
    }
  ],
  "version": "3.6.2",
  "created_via": "checkout",
  "currency": "EUR",
  "transaction_id": "b9b5739bc0",
  "customer_user_agent": "Mozilla/5.0 (Linux; Android 11; SAMSUNG SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/15.0 Chrome/90.0.4430.210 Mobile Safari/537.36"
}', '', 'Rautiainen Olli
Hopeasepäntie 9 as 3
04109 Nummela', '5911', 'AV', 'TI', 'HV', 16.53, '', '20220124.000353.1q001.so_  zzy9f84d896921dcrr', 'K', 3.97)
'
INSERT INTO sales_order
 (company_id, customer_order_number, currency_id, delivery_address, delivery_company_id, invoicing_address, invoicing_company_id, additional_data, notes, order_address, sales_order_id, state, type_, employee_id, sales_price_total, project_id, record_id, terms_of_payment_id, vat_total)
 VALUES ('7000', '', 'EUR', 'Automaatti K-Citymarket Nummela
Tuusankaari 1
03100 Nummela', '7000', 'Rautiainen Olli
Hopeasepäntie 9 as 3
04109 Nummela
0407460885, orau@windowslive.com', '7000', '{
  "id": 5911,
  "total": "20.50",
  "total_tax": "3.97",
  "shipping_lines": [
    {
      "taxes": [
        {
          "id": 1,
          "total": "1.452",
          "subtotal": ""
        }
      ],
      "total": "6.05",
      "meta_data": [
        {
          "key": "Tuotteet",
          "id": 53885,
          "value": "Serafil 20 Beige 0267 WR &times; 1"
        }
      ],
      "method_id": "matkahuolto",
      "instance_id": "5",
      "method_title": "Matkahuolto Lähellä-paketti",
      "total_tax": "1.45",
      "id": 7281
    }
  ],
  "number": "5911",
  "date_modified": "2021-10-08T07:01:57",
  "date_created": "2021-10-04T16:08:10",
  "customer_ip_address": "185.166.28.117",
  "order_key": "wc_order_5u5kiQdAERF01",
  "shipping_total": "6.05",
  "fee_lines": [],
  "shipping": {
    "state": "",
    "city": "Nummela",
    "address_1": "Hopeasepäntie 9 as 3",
    "company": "",
    "first_name": "Olli",
    "last_name": "Rautiainen",
    "country": "FI",
    "address_2": "",
    "postcode": "04109"
  },
  "date_created_gmt": "2021-10-04T13:08:10",
  "date_modified_gmt": "2021-10-08T04:01:57",
  "discount_tax": "0.00",
  "parent_id": 0,
  "shipping_tax": "1.45",
  "cart_tax": "2.52",
  "prices_include_tax": false,
  "billing": {
    "email": "orau@windowslive.com",
    "state": "",
    "city": "Nummela",
    "address_1": "Hopeasepäntie 9 as 3",
    "company": "",
    "first_name": "Olli",
    "last_name": "Rautiainen",
    "country": "FI",
    "phone": "0407460885",
    "postcode": "04109",
    "address_2": ""
  },
  "payment_method": "paytrail",
  "_links": {
    "self": [
      {
        "href": "https://shop.va-varuste.fi/wp-json/wc/v3/orders/5911"
      }
    ],
    "collection": [
      {
        "href": "https://shop.va-varuste.fi/wp-json/wc/v3/orders"
      }
    ]
  },
  "refunds": [],
  "coupon_lines": [],
  "tax_lines": [
    {
      "id": 7282,
      "compound": false,
      "meta_data": [],
      "label": "alv.",
      "tax_total": "2.52",
      "shipping_tax_total": "1.45",
      "rate_code": "FI-ALV.-1",
      "rate_id": 1
    }
  ],
  "payment_method_title": "Paytrail",
  "status": "completed",
  "date_paid": "2021-10-04T16:09:38",
  "date_paid_gmt": "2021-10-04T13:09:38",
  "date_completed": "2021-10-08T07:01:57",
  "customer_id": 0,
  "date_completed_gmt": "2021-10-08T04:01:57",
  "cart_hash": "7e27f29f09e9998f020ba75c1cd30fd0",
  "meta_data": [
    {
      "key": "is_vat_exempt",
      "id": 241915,
      "value": "no"
    },
    {
      "key": "_woo_carrier_agent_id",
      "id": 242117,
      "value": "6277"
    },
    {
      "key": "_woo_carrier_agent_meta",
      "id": 242119,
      "value": {
        "id": "6277",
        "city": "Nummela",
        "title": "Automaatti K-Citymarket Nummela",
        "street_address2": "",
        "distance": "0.1",
        "postcode": "03100",
        "country": "FI",
        "logo_url": "",
        "carrier": "matkahuolto",
        "street_address": "Tuusankaari 1"
      }
    },
    {
      "key": "_wc_matkahuolto",
      "id": 242120,
      "value": "O:8:\"stdClass\":9:{s:15:\"shipment_number\";s:13:\"MH230496941FI\";s:6:\"weight\";d:0.200000000000000011102230246251565404236316680908203125;s:8:\"packages\";s:1:\"1\";s:12:\"product_code\";s:2:\"80\";s:15:\"activation_code\";s:0:\"\";s:16:\"special_handling\";s:0:\"\";s:3:\"cod\";b:0;s:10:\"cod_amount\";N;s:13:\"cod_reference\";N;}"
    }
  ],
  "discount_total": "0.00",
  "customer_note": "",
  "line_items": [
    {
      "id": 7280,
      "total": "10.48",
      "meta_data": [],
      "total_tax": "2.52",
      "product_id": 2149,
      "subtotal_tax": "2.52",
      "tax_class": "",
      "sku": "RE_LASERA20B0267",
      "subtotal": "10.48",
      "name": "Serafil 20 Beige 0267 WR",
      "variation_id": 0,
      "price": 10.48,
      "taxes": [
        {
          "id": 1,
          "total": "2.5152",
          "subtotal": "2.5152"
        }
      ],
      "quantity": 1
    }
  ],
  "version": "3.6.2",
  "created_via": "checkout",
  "currency": "EUR",
  "transaction_id": "b9b5739bc0",
  "customer_user_agent": "Mozilla/5.0 (Linux; Android 11; SAMSUNG SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/15.0 Chrome/90.0.4430.210 Mobile Safari/537.36"
}', '', 'Rautiainen Olli
Hopeasepäntie 9 as 3
04109 Nummela', '5911', 'AV', 'TI', 'HV', 16.53, '', '20220124.000353.1q001.so_  zzy9f84d896921dcrr', 'K', 3.97)
'
 	24.1.2022 	00:04:31 	_lx_ExecuteSqlNew 	(5. palvelin)

warning: 
*** sql error: '4d execute sql error -1: Error -1, Duplicated key: 5911 on field Sales_Order_ID of table Sales_Order (dbmg 1115)
Cannot update new record in table Sales_Order of database Manageri_v19 (dbmg 1247)
Cannot save new record in table Sales_Order of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO sales_order
 (company_id, customer_order_number, currency_id, delivery_address, delivery_company_id, invoicing_address, invoicing_company_id, additional_data, notes, order_address, sales_order_id, state, type_, employee_id, sales_price_total, project_id, record_id, terms_of_payment_id, vat_total)
 VALUES ('7000', '', 'EUR', 'Automaatti K-Citymarket Nummela
Tuusankaari 1
03100 Nummela', '7000', 'Rautiainen Olli
Hopeasepäntie 9 as 3
04109 Nummela
0407460885, orau@windowslive.com', '7000', '{
  "id": 5911,
  "total": "20.50",
  "total_tax": "3.97",
  "shipping_lines": [
    {
      "taxes": [
        {
          "id": 1,
          "total": "1.452",
          "subtotal": ""
        }
      ],
      "total": "6.05",
      "meta_data": [
        {
          "key": "Tuotteet",
          "id": 53885,
          "value": "Serafil 20 Beige 0267 WR &times; 1"
        }
      ],
      "method_id": "matkahuolto",
      "instance_id": "5",
      "method_title": "Matkahuolto Lähellä-paketti",
      "total_tax": "1.45",
      "id": 7281
    }
  ],
  "number": "5911",
  "date_modified": "2021-10-08T07:01:57",
  "date_created": "2021-10-04T16:08:10",
  "customer_ip_address": "185.166.28.117",
  "order_key": "wc_order_5u5kiQdAERF01",
  "shipping_total": "6.05",
  "fee_lines": [],
  "shipping": {
    "state": "",
    "city": "Nummela",
    "address_1": "Hopeasepäntie 9 as 3",
    "company": "",
    "first_name": "Olli",
    "last_name": "Rautiainen",
    "country": "FI",
    "address_2": "",
    "postcode": "04109"
  },
  "date_created_gmt": "2021-10-04T13:08:10",
  "date_modified_gmt": "2021-10-08T04:01:57",
  "discount_tax": "0.00",
  "parent_id": 0,
  "shipping_tax": "1.45",
  "cart_tax": "2.52",
  "prices_include_tax": false,
  "billing": {
    "email": "orau@windowslive.com",
    "state": "",
    "city": "Nummela",
    "address_1": "Hopeasepäntie 9 as 3",
    "company": "",
    "first_name": "Olli",
    "last_name": "Rautiainen",
    "country": "FI",
    "phone": "0407460885",
    "postcode": "04109",
    "address_2": ""
  },
  "payment_method": "paytrail",
  "_links": {
    "self": [
      {
        "href": "https://shop.va-varuste.fi/wp-json/wc/v3/orders/5911"
      }
    ],
    "collection": [
      {
        "href": "https://shop.va-varuste.fi/wp-json/wc/v3/orders"
      }
    ]
  },
  "refunds": [],
  "coupon_lines": [],
  "tax_lines": [
    {
      "id": 7282,
      "compound": false,
      "meta_data": [],
      "label": "alv.",
      "tax_total": "2.52",
      "shipping_tax_total": "1.45",
      "rate_code": "FI-ALV.-1",
      "rate_id": 1
    }
  ],
  "payment_method_title": "Paytrail",
  "status": "completed",
  "date_paid": "2021-10-04T16:09:38",
  "date_paid_gmt": "2021-10-04T13:09:38",
  "date_completed": "2021-10-08T07:01:57",
  "customer_id": 0,
  "date_completed_gmt": "2021-10-08T04:01:57",
  "cart_hash": "7e27f29f09e9998f020ba75c1cd30fd0",
  "meta_data": [
    {
      "key": "is_vat_exempt",
      "id": 241915,
      "value": "no"
    },
    {
      "key": "_woo_carrier_agent_id",
      "id": 242117,
      "value": "6277"
    },
    {
      "key": "_woo_carrier_agent_meta",
      "id": 242119,
      "value": {
        "id": "6277",
        "city": "Nummela",
        "title": "Automaatti K-Citymarket Nummela",
        "street_address2": "",
        "distance": "0.1",
        "postcode": "03100",
        "country": "FI",
        "logo_url": "",
        "carrier": "matkahuolto",
        "street_address": "Tuusankaari 1"
      }
    },
    {
      "key": "_wc_matkahuolto",
      "id": 242120,
      "value": "O:8:\"stdClass\":9:{s:15:\"shipment_number\";s:13:\"MH230496941FI\";s:6:\"weight\";d:0.200000000000000011102230246251565404236316680908203125;s:8:\"packages\";s:1:\"1\";s:12:\"product_code\";s:2:\"80\";s:15:\"activation_code\";s:0:\"\";s:16:\"special_handling\";s:0:\"\";s:3:\"cod\";b:0;s:10:\"cod_amount\";N;s:13:\"cod_reference\";N;}"
    }
  ],
  "discount_total": "0.00",
  "customer_note": "",
  "line_items": [
    {
      "id": 7280,
      "total": "10.48",
      "meta_data": [],
      "total_tax": "2.52",
      "product_id": 2149,
      "subtotal_tax": "2.52",
      "tax_class": "",
      "sku": "RE_LASERA20B0267",
      "subtotal": "10.48",
      "name": "Serafil 20 Beige 0267 WR",
      "variation_id": 0,
      "price": 10.48,
      "taxes": [
        {
          "id": 1,
          "total": "2.5152",
          "subtotal": "2.5152"
        }
      ],
      "quantity": 1
    }
  ],
  "version": "3.6.2",
  "created_via": "checkout",
  "currency": "EUR",
  "transaction_id": "b9b5739bc0",
  "customer_user_agent": "Mozilla/5.0 (Linux; Android 11; SAMSUNG SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/15.0 Chrome/90.0.4430.210 Mobile Safari/537.36"
}', '', 'Rautiainen Olli
Hopeasepäntie 9 as 3
04109 Nummela', '5911', 'AV', 'TI', 'HV', 16.53, '', '20220124.000353.1q001.so_  zzy9f84d896921dcrr', 'K', 3.97)', sql: 
INSERT INTO sales_order
 (company_id, customer_order_number, currency_id, delivery_address, delivery_company_id, invoicing_address, invoicing_company_id, additional_data, notes, order_address, sales_order_id, state, type_, employee_id, sales_price_total, project_id, record_id, terms_of_payment_id, vat_total)
 VALUES ('7000', '', 'EUR', 'Automaatti K-Citymarket Nummela
Tuusankaari 1
03100 Nummela', '7000', 'Rautiainen Olli
Hopeasepäntie 9 as 3
04109 Nummela
0407460885, orau@windowslive.com', '7000', '{
  "id": 5911,
  "total": "20.50",
  "total_tax": "3.97",
  "shipping_lines": [
    {
      "taxes": [
        {
          "id": 1,
          "total": "1.452",
          "subtotal": ""
        }
      ],
      "total": "6.05",
      "meta_data": [
        {
          "key": "Tuotteet",
          "id": 53885,
          "value": "Serafil 20 Beige 0267 WR &times; 1"
        }
      ],
      "method_id": "matkahuolto",
      "instance_id": "5",
      "method_title": "Matkahuolto Lähellä-paketti",
      "total_tax": "1.45",
      "id": 7281
    }
  ],
  "number": "5911",
  "date_modified": "2021-10-08T07:01:57",
  "date_created": "2021-10-04T16:08:10",
  "customer_ip_address": "185.166.28.117",
  "order_key": "wc_order_5u5kiQdAERF01",
  "shipping_total": "6.05",
  "fee_lines": [],
  "shipping": {
    "state": "",
    "city": "Nummela",
    "address_1": "Hopeasepäntie 9 as 3",
    "company": "",
    "first_name": "Olli",
    "last_name": "Rautiainen",
    "country": "FI",
    "address_2": "",
    "postcode": "04109"
  },
  "date_created_gmt": "2021-10-04T13:08:10",
  "date_modified_gmt": "2021-10-08T04:01:57",
  "discount_tax": "0.00",
  "parent_id": 0,
  "shipping_tax": "1.45",
  "cart_tax": "2.52",
  "prices_include_tax": false,
  "billing": {
    "email": "orau@windowslive.com",
    "state": "",
    "city": "Nummela",
    "address_1": "Hopeasepäntie 9 as 3",
    "company": "",
    "first_name": "Olli",
    "last_name": "Rautiainen",
    "country": "FI",
    "phone": "0407460885",
    "postcode": "04109",
    "address_2": ""
  },
  "payment_method": "paytrail",
  "_links": {
    "self": [
      {
        "href": "https://shop.va-varuste.fi/wp-json/wc/v3/orders/5911"
      }
    ],
    "collection": [
      {
        "href": "https://shop.va-varuste.fi/wp-json/wc/v3/orders"
      }
    ]
  },
  "refunds": [],
  "coupon_lines": [],
  "tax_lines": [
    {
      "id": 7282,
      "compound": false,
      "meta_data": [],
      "label": "alv.",
      "tax_total": "2.52",
      "shipping_tax_total": "1.45",
      "rate_code": "FI-ALV.-1",
      "rate_id": 1
    }
  ],
  "payment_method_title": "Paytrail",
  "status": "completed",
  "date_paid": "2021-10-04T16:09:38",
  "date_paid_gmt": "2021-10-04T13:09:38",
  "date_completed": "2021-10-08T07:01:57",
  "customer_id": 0,
  "date_completed_gmt": "2021-10-08T04:01:57",
  "cart_hash": "7e27f29f09e9998f020ba75c1cd30fd0",
  "meta_data": [
    {
      "key": "is_vat_exempt",
      "id": 241915,
      "value": "no"
    },
    {
      "key": "_woo_carrier_agent_id",
      "id": 242117,
      "value": "6277"
    },
    {
      "key": "_woo_carrier_agent_meta",
      "id": 242119,
      "value": {
        "id": "6277",
        "city": "Nummela",
        "title": "Automaatti K-Citymarket Nummela",
        "street_address2": "",
        "distance": "0.1",
        "postcode": "03100",
        "country": "FI",
        "logo_url": "",
        "carrier": "matkahuolto",
        "street_address": "Tuusankaari 1"
      }
    },
    {
      "key": "_wc_matkahuolto",
      "id": 242120,
      "value": "O:8:\"stdClass\":9:{s:15:\"shipment_number\";s:13:\"MH230496941FI\";s:6:\"weight\";d:0.200000000000000011102230246251565404236316680908203125;s:8:\"packages\";s:1:\"1\";s:12:\"product_code\";s:2:\"80\";s:15:\"activation_code\";s:0:\"\";s:16:\"special_handling\";s:0:\"\";s:3:\"cod\";b:0;s:10:\"cod_amount\";N;s:13:\"cod_reference\";N;}"
    }
  ],
  "discount_total": "0.00",
  "customer_note": "",
  "line_items": [
    {
      "id": 7280,
      "total": "10.48",
      "meta_data": [],
      "total_tax": "2.52",
      "product_id": 2149,
      "subtotal_tax": "2.52",
      "tax_class": "",
      "sku": "RE_LASERA20B0267",
      "subtotal": "10.48",
      "name": "Serafil 20 Beige 0267 WR",
      "variation_id": 0,
      "price": 10.48,
      "taxes": [
        {
          "id": 1,
          "total": "2.5152",
          "subtotal": "2.5152"
        }
      ],
      "quantity": 1
    }
  ],
  "version": "3.6.2",
  "created_via": "checkout",
  "currency": "EUR",
  "transaction_id": "b9b5739bc0",
  "customer_user_agent": "Mozilla/5.0 (Linux; Android 11; SAMSUNG SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/15.0 Chrome/90.0.4430.210 Mobile Safari/537.36"
}', '', 'Rautiainen Olli
Hopeasepäntie 9 as 3
04109 Nummela', '5911', 'AV', 'TI', 'HV', 16.53, '', '20220124.000353.1q001.so_  zzy9f84d896921dcrr', 'K', 3.97)


. 	24.1.2022 	00:04:31 	lx 	(5. palvelin)

4d execute sql error -1: Error -1, Duplicated key: 5911 on field Sales_Order_ID of table Sales_Order (dbmg 1115)
Cannot update new record in table Sales_Order of database Manageri_v19 (dbmg 1247)
Cannot save new record in table Sales_Order of database Manageri_v19 (dbmg 1248)
Failed to execute INSERT command. (SQLS 1802)
Failed to execute INSERT command. (dbmg 1248)

INSERT INTO sales_order
 (company_id, customer_order_number, currency_id, delivery_address, delivery_company_id, invoicing_address, invoicing_company_id, additional_data, notes, order_address, sales_order_id, state, type_, employee_id, sales_price_total, project_id, record_id, terms_of_payment_id, vat_total)
 VALUES ('7000', '', 'EUR', 'Automaatti K-Citymarket Nummela
Tuusankaari 1
03100 Nummela', '7000', 'Rautiainen Olli
Hopeasepäntie 9 as 3
04109 Nummela
0407460885, orau@windowslive.com', '7000', '{
  "id": 5911,
  "total": "20.50",
  "total_tax": "3.97",
  "shipping_lines": [
    {
      "taxes": [
        {
          "id": 1,
          "total": "1.452",
          "subtotal": ""
        }
      ],
      "total": "6.05",
      "meta_data": [
        {
          "key": "Tuotteet",
          "id": 53885,
          "value": "Serafil 20 Beige 0267 WR &times; 1"
        }
      ],
      "method_id": "matkahuolto",
      "instance_id": "5",
      "method_title": "Matkahuolto Lähellä-paketti",
      "total_tax": "1.45",
      "id": 7281
    }
  ],
  "number": "5911",
  "date_modified": "2021-10-08T07:01:57",
  "date_created": "2021-10-04T16:08:10",
  "customer_ip_address": "185.166.28.117",
  "order_key": "wc_order_5u5kiQdAERF01",
  "shipping_total": "6.05",
  "fee_lines": [],
  "shipping": {
    "state": "",
    "city": "Nummela",
    "address_1": "Hopeasepäntie 9 as 3",
    "company": "",
    "first_name": "Olli",
    "last_name": "Rautiainen",
    "country": "FI",
    "address_2": "",
    "postcode": "04109"
  },
  "date_created_gmt": "2021-10-04T13:08:10",
  "date_modified_gmt": "2021-10-08T04:01:57",
  "discount_tax": "0.00",
  "parent_id": 0,
  "shipping_tax": "1.45",
  "cart_tax": "2.52",
  "prices_include_tax": false,
  "billing": {
    "email": "orau@windowslive.com",
    "state": "",
    "city": "Nummela",
    "address_1": "Hopeasepäntie 9 as 3",
    "company": "",
    "first_name": "Olli",
    "last_name": "Rautiainen",
    "country": "FI",
    "phone": "0407460885",
    "postcode": "04109",
    "address_2": ""
  },
  "payment_method": "paytrail",
  "_links": {
    "self": [
      {
        "href": "https://shop.va-varuste.fi/wp-json/wc/v3/orders/5911"
      }
    ],
    "collection": [
      {
        "href": "https://shop.va-varuste.fi/wp-json/wc/v3/orders"
      }
    ]
  },
  "refunds": [],
  "coupon_lines": [],
  "tax_lines": [
    {
      "id": 7282,
      "compound": false,
      "meta_data": [],
      "label": "alv.",
      "tax_total": "2.52",
      "shipping_tax_total": "1.45",
      "rate_code": "FI-ALV.-1",
      "rate_id": 1
    }
  ],
  "payment_method_title": "Paytrail",
  "status": "completed",
  "date_paid": "2021-10-04T16:09:38",
  "date_paid_gmt": "2021-10-04T13:09:38",
  "date_completed": "2021-10-08T07:01:57",
  "customer_id": 0,
  "date_completed_gmt": "2021-10-08T04:01:57",
  "cart_hash": "7e27f29f09e9998f020ba75c1cd30fd0",
  "meta_data": [
    {
      "key": "is_vat_exempt",
      "id": 241915,
      "value": "no"
    },
    {
      "key": "_woo_carrier_agent_id",
      "id": 242117,
      "value": "6277"
    },
    {
      "key": "_woo_carrier_agent_meta",
      "id": 242119,
      "value": {
        "id": "6277",
        "city": "Nummela",
        "title": "Automaatti K-Citymarket Nummela",
        "street_address2": "",
        "distance": "0.1",
        "postcode": "03100",
        "country": "FI",
        "logo_url": "",
        "carrier": "matkahuolto",
        "street_address": "Tuusankaari 1"
      }
    },
    {
      "key": "_wc_matkahuolto",
      "id": 242120,
      "value": "O:8:\"stdClass\":9:{s:15:\"shipment_number\";s:13:\"MH230496941FI\";s:6:\"weight\";d:0.200000000000000011102230246251565404236316680908203125;s:8:\"packages\";s:1:\"1\";s:12:\"product_code\";s:2:\"80\";s:15:\"activation_code\";s:0:\"\";s:16:\"special_handling\";s:0:\"\";s:3:\"cod\";b:0;s:10:\"cod_amount\";N;s:13:\"cod_reference\";N;}"
    }
  ],
  "discount_total": "0.00",
  "customer_note": "",
  "line_items": [
    {
      "id": 7280,
      "total": "10.48",
      "meta_data": [],
      "total_tax": "2.52",
      "product_id": 2149,
      "subtotal_tax": "2.52",
      "tax_class": "",
      "sku": "RE_LASERA20B0267",
      "subtotal": "10.48",
      "name": "Serafil 20 Beige 0267 WR",
      "variation_id": 0,
      "price": 10.48,
      "taxes": [
        {
          "id": 1,
          "total": "2.5152",
          "subtotal": "2.5152"
        }
      ],
      "quantity": 1
    }
  ],
  "version": "3.6.2",
  "created_via": "checkout",
  "currency": "EUR",
  "transaction_id": "b9b5739bc0",
  "customer_user_agent": "Mozilla/5.0 (Linux; Android 11; SAMSUNG SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/15.0 Chrome/90.0.4430.210 Mobile Safari/537.36"
}', '', 'Rautiainen Olli
Hopeasepäntie 9 as 3
04109 Nummela', '5911', 'AV', 'TI', 'HV', 16.53, '', '20220124.000353.1q001.so_  zzy9f84d896921dcrr', 'K', 3.97). 	24.1.2022 	00:04:31 	_lx_SERVER 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:04:39 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 5, send result: -1, send count: 3, loop count: 3, bytes sent 244980 / 340550, 95570 remaining, total send time 3 µs. 	24.1.2022 	00:04:39 	lx 	(5. palvelin)

 -- tcp answer 5, send result: -1, send count: 4, loop count: 5, bytes sent 326640 / 340550, 13910 remaining, total send time 1260 µs. 	24.1.2022 	00:04:39 	lx 	(5. palvelin)

 -- tcp answer 5, send count: 5, loop count: 6, bytes sent 340550 / 340550, 0 remaining, total send time 2495 µs. 	24.1.2022 	00:04:39 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 087 bytes ***. 	24.1.2022 	00:08:06 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	00:08:06 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	00:08:10 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	00:08:23 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 740 bytes ***. 	24.1.2022 	00:10:57 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	00:10:57 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:11:05 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:11:09 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:12:56 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:12:56 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:12:59 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 12, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340551, 177231 remaining, total send time 2 µs. 	24.1.2022 	00:12:59 	lx 	(5. palvelin)

 -- tcp answer 12, send result: -1, send count: 4, loop count: 5, bytes sent 326640 / 340551, 13911 remaining, total send time 1261 µs. 	24.1.2022 	00:12:59 	lx 	(5. palvelin)

 -- tcp answer 12, send count: 5, loop count: 6, bytes sent 340551 / 340551, 0 remaining, total send time 2500 µs. 	24.1.2022 	00:12:59 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:13:00 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 13, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340550, 258890 remaining, total send time 2 µs. 	24.1.2022 	00:13:00 	lx 	(5. palvelin)

 -- tcp answer 13, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340550, 177230 remaining, total send time 1262 µs. 	24.1.2022 	00:13:00 	lx 	(5. palvelin)

 -- tcp answer 13, send result: -1, send count: 3, loop count: 5, bytes sent 244980 / 340550, 95570 remaining, total send time 2509 µs. 	24.1.2022 	00:13:00 	lx 	(5. palvelin)

 -- tcp answer 13, send result: -1, send count: 4, loop count: 7, bytes sent 326640 / 340550, 13910 remaining, total send time 3771 µs. 	24.1.2022 	00:13:00 	lx 	(5. palvelin)

 -- tcp answer 13, send count: 5, loop count: 8, bytes sent 340550 / 340550, 0 remaining, total send time 5064 µs. 	24.1.2022 	00:13:00 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	00:13:39 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	00:13:39 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 747 bytes ***. 	24.1.2022 	00:27:07 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	00:27:07 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:27:17 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:27:17 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:27:17 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:27:25 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 19, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340550, 258890 remaining, total send time 1 µs. 	24.1.2022 	00:27:25 	lx 	(5. palvelin)

 -- tcp answer 19, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340550, 177230 remaining, total send time 1258 µs. 	24.1.2022 	00:27:25 	lx 	(5. palvelin)

 -- tcp answer 19, send result: -1, send count: 3, loop count: 5, bytes sent 244980 / 340550, 95570 remaining, total send time 2517 µs. 	24.1.2022 	00:27:25 	lx 	(5. palvelin)

 -- tcp answer 19, send result: -1, send count: 4, loop count: 7, bytes sent 326640 / 340550, 13910 remaining, total send time 3784 µs. 	24.1.2022 	00:27:25 	lx 	(5. palvelin)

 -- tcp answer 19, send count: 5, loop count: 8, bytes sent 340550 / 340550, 0 remaining, total send time 5153 µs. 	24.1.2022 	00:27:25 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:27:26 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 20, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340553, 258893 remaining, total send time 9 µs. 	24.1.2022 	00:27:26 	lx 	(5. palvelin)

 -- tcp answer 20, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340553, 177233 remaining, total send time 1267 µs. 	24.1.2022 	00:27:26 	lx 	(5. palvelin)

 -- tcp answer 20, send result: -1, send count: 4, loop count: 6, bytes sent 261312 / 340553, 79241 remaining, total send time 2592 µs. 	24.1.2022 	00:27:26 	lx 	(5. palvelin)

 -- tcp answer 20, send count: 5, loop count: 7, bytes sent 340553 / 340553, 0 remaining, total send time 3867 µs. 	24.1.2022 	00:27:26 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:30:21 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:30:21 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:30:21 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:30:25 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 24, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340551, 177231 remaining, total send time 2 µs. 	24.1.2022 	00:30:25 	lx 	(5. palvelin)

 -- tcp answer 24, send result: -1, send count: 3, loop count: 4, bytes sent 244980 / 340551, 95571 remaining, total send time 1262 µs. 	24.1.2022 	00:30:25 	lx 	(5. palvelin)

 -- tcp answer 24, send result: -1, send count: 4, loop count: 6, bytes sent 326640 / 340551, 13911 remaining, total send time 2509 µs. 	24.1.2022 	00:30:25 	lx 	(5. palvelin)

 -- tcp answer 24, send count: 5, loop count: 7, bytes sent 340551 / 340551, 0 remaining, total send time 3787 µs. 	24.1.2022 	00:30:25 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:30:26 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 25, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340550, 258890 remaining, total send time 10 µs. 	24.1.2022 	00:30:26 	lx 	(5. palvelin)

 -- tcp answer 25, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340550, 177230 remaining, total send time 1272 µs. 	24.1.2022 	00:30:26 	lx 	(5. palvelin)

 -- tcp answer 25, send result: -1, send count: 4, loop count: 6, bytes sent 277644 / 340550, 62906 remaining, total send time 2617 µs. 	24.1.2022 	00:30:26 	lx 	(5. palvelin)

 -- tcp answer 25, send count: 5, loop count: 7, bytes sent 340550 / 340550, 0 remaining, total send time 3869 µs. 	24.1.2022 	00:30:26 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:32:04 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:32:05 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:32:05 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:32:08 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 29, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340551, 177231 remaining, total send time 2 µs. 	24.1.2022 	00:32:08 	lx 	(5. palvelin)

 -- tcp answer 29, send count: 5, loop count: 5, bytes sent 340551 / 340551, 0 remaining, total send time 1252 µs. 	24.1.2022 	00:32:08 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:32:09 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 30, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340551, 258891 remaining, total send time 49 µs. 	24.1.2022 	00:32:09 	lx 	(5. palvelin)

 -- tcp answer 30, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340551, 177231 remaining, total send time 1287 µs. 	24.1.2022 	00:32:09 	lx 	(5. palvelin)

 -- tcp answer 30, send count: 5, loop count: 6, bytes sent 340551 / 340551, 0 remaining, total send time 2672 µs. 	24.1.2022 	00:32:09 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	00:34:16 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	00:34:16 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:34:17 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 33, send count: 5, loop count: 4, bytes sent 340550 / 340550, 0 remaining, total send time 123 µs. 	24.1.2022 	00:34:17 	lx 	(5. palvelin)

Muuttujaa ei löytynyt taulukosta var: SO_QRY_CMYYJA. 	24.1.2022 	00:35:36 	_qry_app_DATA 	(6. tbl_ 5)

Muuttujaa ei löytynyt taulukosta var: SO_QRY_SMYYJA. 	24.1.2022 	00:35:36 	_qry_app_DATA 	(6. tbl_ 5)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:36:12 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 34, send count: 5, loop count: 4, bytes sent 340553 / 340553, 0 remaining, total send time 160 µs. 	24.1.2022 	00:36:12 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:38:01 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:38:05 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:39:34 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 194 bytes ***. 	24.1.2022 	00:40:05 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	00:40:05 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:42:58 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 38, send count: 5, loop count: 4, bytes sent 340549 / 340549, 0 remaining, total send time 163 µs. 	24.1.2022 	00:42:58 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:42:59 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 39, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340551, 258891 remaining, total send time 1 µs. 	24.1.2022 	00:42:59 	lx 	(5. palvelin)

 -- tcp answer 39, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340551, 177231 remaining, total send time 1255 µs. 	24.1.2022 	00:42:59 	lx 	(5. palvelin)

 -- tcp answer 39, send count: 5, loop count: 6, bytes sent 340551 / 340551, 0 remaining, total send time 2511 µs. 	24.1.2022 	00:42:59 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 100 bytes ***. 	24.1.2022 	00:48:20 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	00:48:20 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:48:27 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 40, send count: 5, loop count: 4, bytes sent 340551 / 340551, 0 remaining, total send time 7 µs. 	24.1.2022 	00:48:27 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:48:27 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 41, send result: -1, send count: 2, loop count: 2, bytes sent 97992 / 340550, 242558 remaining, total send time 2 µs. 	24.1.2022 	00:48:27 	lx 	(5. palvelin)

 -- tcp answer 41, send result: -1, send count: 3, loop count: 4, bytes sent 179652 / 340550, 160898 remaining, total send time 1259 µs. 	24.1.2022 	00:48:27 	lx 	(5. palvelin)

 -- tcp answer 41, send count: 5, loop count: 6, bytes sent 340550 / 340550, 0 remaining, total send time 2492 µs. 	24.1.2022 	00:48:28 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 097 bytes ***. 	24.1.2022 	00:50:17 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	00:50:17 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	24.1.2022 	00:56:19 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	00:56:19 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:56:25 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:56:25 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	00:56:26 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:56:28 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 45, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340551, 177231 remaining, total send time 2 µs. 	24.1.2022 	00:56:28 	lx 	(5. palvelin)

 -- tcp answer 45, send result: -1, send count: 4, loop count: 5, bytes sent 326640 / 340551, 13911 remaining, total send time 1262 µs. 	24.1.2022 	00:56:28 	lx 	(5. palvelin)

 -- tcp answer 45, send count: 5, loop count: 6, bytes sent 340551 / 340551, 0 remaining, total send time 2522 µs. 	24.1.2022 	00:56:28 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	00:56:29 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 46, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340550, 258890 remaining, total send time 2 µs. 	24.1.2022 	00:56:29 	lx 	(5. palvelin)

 -- tcp answer 46, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340550, 177230 remaining, total send time 1259 µs. 	24.1.2022 	00:56:29 	lx 	(5. palvelin)

 -- tcp answer 46, send result: -1, send count: 4, loop count: 6, bytes sent 261312 / 340550, 79238 remaining, total send time 2498 µs. 	24.1.2022 	00:56:29 	lx 	(5. palvelin)

 -- tcp answer 46, send count: 5, loop count: 7, bytes sent 340550 / 340550, 0 remaining, total send time 3776 µs. 	24.1.2022 	00:56:29 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 073 bytes ***. 	24.1.2022 	00:57:46 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	00:57:46 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	24.1.2022 	01:01:43 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:01:43 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	24.1.2022 	01:14:29 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:14:29 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	24.1.2022 	01:17:40 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:17:40 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:18:09 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:18:09 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:18:09 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 196 bytes ***. 	24.1.2022 	01:22:37 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:22:37 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:24:05 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 50, send count: 5, loop count: 4, bytes sent 340547 / 340547, 0 remaining, total send time 22 µs. 	24.1.2022 	01:24:05 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:24:06 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 51, send result: -1, send count: 2, loop count: 2, bytes sent 97992 / 340551, 242559 remaining, total send time 3 µs. 	24.1.2022 	01:24:06 	lx 	(5. palvelin)

 -- tcp answer 51, send result: -1, send count: 3, loop count: 4, bytes sent 179652 / 340551, 160899 remaining, total send time 1257 µs. 	24.1.2022 	01:24:06 	lx 	(5. palvelin)

 -- tcp answer 51, send result: -1, send count: 4, loop count: 6, bytes sent 261312 / 340551, 79239 remaining, total send time 2490 µs. 	24.1.2022 	01:24:06 	lx 	(5. palvelin)

 -- tcp answer 51, send count: 5, loop count: 7, bytes sent 340551 / 340551, 0 remaining, total send time 3751 µs. 	24.1.2022 	01:24:06 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 096 bytes ***. 	24.1.2022 	01:25:10 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:25:10 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	24.1.2022 	01:26:19 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:26:19 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:26:24 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:26:25 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:26:25 	_lx_ExecuteSqlNew 	(5. palvelin)

Sql field error, field number is not valid, field: 'ord.json_data.project_id', sql:
	SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id
 FROM sales_order so
 WHERE so.project_id <> ''
 ORDER BY so.sales_order_id DESC
 LIMIT 500
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 	24.1.2022 	01:26:28 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id  FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:26:28 	_lx_ExecuteSqlNew 	(5. palvelin)

4d execute sql error -1: Sql field error, field number is not valid, field: 'ord.json_data.project_id', sql:
	SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id
 FROM sales_order so
 WHERE so.project_id <> ''
 ORDER BY so.sales_order_id DESC
 LIMIT 500
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8


SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id
 FROM sales_order so
 WHERE so.project_id <> ''
 ORDER BY so.sales_order_id DESC
 LIMIT 500
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8. 	24.1.2022 	01:26:28 	_lx_SERVER 	(5. palvelin)

Sql field error, field number is not valid, field: 'ord.json_data.project_id', sql:
	SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id
 FROM sales_order so
 WHERE so.project_id <> ''
 ORDER BY so.sales_order_id DESC
 LIMIT 500
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 	24.1.2022 	01:26:28 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id  FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:26:28 	_lx_ExecuteSqlNew 	(5. palvelin)

Sql field error, field number is not valid, field: 'ord.json_data.project_id', sql:
	SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id
 FROM sales_order so
 WHERE so.project_id <> ''
 ORDER BY so.sales_order_id DESC
 LIMIT 500
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 	24.1.2022 	01:26:36 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id  FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:26:36 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 118 bytes ***. 	24.1.2022 	01:27:25 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:27:25 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:27:28 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:27:28 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:27:28 	_lx_ExecuteSqlNew 	(5. palvelin)

Sql field error, field number is not valid, field: 'ord.json_data.project_id', sql:
	SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id
 FROM sales_order so
 WHERE ord.json_data->>'project_id' <> ''
 ORDER BY so.sales_order_id DESC
 LIMIT 500
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 	24.1.2022 	01:27:31 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id  FROM sales_order so  WHERE ord.json_data->>'project_id' <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:27:31 	_lx_ExecuteSqlNew 	(5. palvelin)

4d execute sql error -1: Sql field error, field number is not valid, field: 'ord.json_data.project_id', sql:
	SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id
 FROM sales_order so
 WHERE ord.json_data->>'project_id' <> ''
 ORDER BY so.sales_order_id DESC
 LIMIT 500
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8


SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id
 FROM sales_order so
 WHERE ord.json_data->>'project_id' <> ''
 ORDER BY so.sales_order_id DESC
 LIMIT 500
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8. 	24.1.2022 	01:27:31 	_lx_SERVER 	(5. palvelin)

Sql field error, field number is not valid, field: 'ord.json_data.project_id', sql:
	SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id
 FROM sales_order so
 WHERE ord.json_data->>'project_id' <> ''
 ORDER BY so.sales_order_id DESC
 LIMIT 500
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 	24.1.2022 	01:27:31 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT so.sales_order_id, ord.json_data->>'project_id', so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id  FROM sales_order so  WHERE ord.json_data->>'project_id' <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:27:31 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 113 bytes ***. 	24.1.2022 	01:33:52 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:33:52 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:33:56 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:33:56 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:33:56 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:34:00 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 66, send count: 5, loop count: 4, bytes sent 340774 / 340774, 0 remaining, total send time 53 µs. 	24.1.2022 	01:34:00 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:34:00 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 67, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340774, 259114 remaining, total send time 3 µs. 	24.1.2022 	01:34:00 	lx 	(5. palvelin)

 -- tcp answer 67, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340774, 177454 remaining, total send time 1263 µs. 	24.1.2022 	01:34:01 	lx 	(5. palvelin)

 -- tcp answer 67, send result: -1, send count: 3, loop count: 5, bytes sent 244980 / 340774, 95794 remaining, total send time 2506 µs. 	24.1.2022 	01:34:01 	lx 	(5. palvelin)

 -- tcp answer 67, send result: -1, send count: 4, loop count: 7, bytes sent 326640 / 340774, 14134 remaining, total send time 3775 µs. 	24.1.2022 	01:34:01 	lx 	(5. palvelin)

 -- tcp answer 67, send count: 5, loop count: 8, bytes sent 340774 / 340774, 0 remaining, total send time 5053 µs. 	24.1.2022 	01:34:01 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 087 bytes ***. 	24.1.2022 	01:36:06 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:36:06 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	24.1.2022 	01:38:38 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:38:38 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	24.1.2022 	01:39:58 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:39:58 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:41:26 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:41:26 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:41:26 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:41:30 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 71, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340774, 177454 remaining, total send time 3 µs. 	24.1.2022 	01:41:30 	lx 	(5. palvelin)

 -- tcp answer 71, send count: 5, loop count: 5, bytes sent 340774 / 340774, 0 remaining, total send time 1265 µs. 	24.1.2022 	01:41:30 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:41:31 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 72, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340774, 259114 remaining, total send time 2 µs. 	24.1.2022 	01:41:31 	lx 	(5. palvelin)

 -- tcp answer 72, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340774, 177454 remaining, total send time 1265 µs. 	24.1.2022 	01:41:31 	lx 	(5. palvelin)

 -- tcp answer 72, send result: -1, send count: 3, loop count: 5, bytes sent 244980 / 340774, 95794 remaining, total send time 2526 µs. 	24.1.2022 	01:41:31 	lx 	(5. palvelin)

 -- tcp answer 72, send result: -1, send count: 4, loop count: 7, bytes sent 326640 / 340774, 14134 remaining, total send time 3792 µs. 	24.1.2022 	01:41:31 	lx 	(5. palvelin)

 -- tcp answer 72, send count: 5, loop count: 8, bytes sent 340774 / 340774, 0 remaining, total send time 5069 µs. 	24.1.2022 	01:41:31 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:42:29 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:42:29 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:42:29 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:42:34 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 76, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340773, 177453 remaining, total send time 2 µs. 	24.1.2022 	01:42:34 	lx 	(5. palvelin)

 -- tcp answer 76, send count: 5, loop count: 5, bytes sent 340773 / 340773, 0 remaining, total send time 1262 µs. 	24.1.2022 	01:42:34 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:42:35 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 77, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340774, 259114 remaining, total send time 1 µs. 	24.1.2022 	01:42:35 	lx 	(5. palvelin)

 -- tcp answer 77, send result: -1, send count: 4, loop count: 5, bytes sent 310308 / 340774, 30466 remaining, total send time 1264 µs. 	24.1.2022 	01:42:35 	lx 	(5. palvelin)

 -- tcp answer 77, send count: 5, loop count: 6, bytes sent 340774 / 340774, 0 remaining, total send time 2499 µs. 	24.1.2022 	01:42:35 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:48:02 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:48:02 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:48:02 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:48:06 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 81, send count: 5, loop count: 4, bytes sent 340773 / 340773, 0 remaining, total send time 52 µs. 	24.1.2022 	01:48:06 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:48:07 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 82, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340774, 259114 remaining, total send time 2 µs. 	24.1.2022 	01:48:07 	lx 	(5. palvelin)

 -- tcp answer 82, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340774, 177454 remaining, total send time 1261 µs. 	24.1.2022 	01:48:07 	lx 	(5. palvelin)

 -- tcp answer 82, send count: 5, loop count: 6, bytes sent 340774 / 340774, 0 remaining, total send time 2501 µs. 	24.1.2022 	01:48:07 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 091 bytes ***. 	24.1.2022 	01:48:39 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:48:39 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	01:48:47 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	01:48:47 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:49:49 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 86, send count: 5, loop count: 4, bytes sent 340773 / 340773, 0 remaining, total send time 214 µs. 	24.1.2022 	01:49:49 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:51:10 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 88, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340771, 177451 remaining, total send time 3 µs. 	24.1.2022 	01:51:10 	lx 	(5. palvelin)

 -- tcp answer 88, send count: 5, loop count: 5, bytes sent 340771 / 340771, 0 remaining, total send time 1262 µs. 	24.1.2022 	01:51:10 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 096 bytes ***. 	24.1.2022 	01:53:08 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:53:09 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	01:53:15 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	01:53:16 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 749 bytes ***. 	24.1.2022 	01:54:56 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:54:56 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:55:00 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:55:00 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	01:55:00 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:55:10 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 94, send count: 5, loop count: 4, bytes sent 340774 / 340774, 0 remaining, total send time 7 µs. 	24.1.2022 	01:55:10 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	01:55:11 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 95, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340774, 259114 remaining, total send time 1 µs. 	24.1.2022 	01:55:11 	lx 	(5. palvelin)

 -- tcp answer 95, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340774, 177454 remaining, total send time 1239 µs. 	24.1.2022 	01:55:11 	lx 	(5. palvelin)

 -- tcp answer 95, send result: -1, send count: 3, loop count: 5, bytes sent 244980 / 340774, 95794 remaining, total send time 2478 µs. 	24.1.2022 	01:55:11 	lx 	(5. palvelin)

 -- tcp answer 95, send result: -1, send count: 4, loop count: 7, bytes sent 326640 / 340774, 14134 remaining, total send time 3743 µs. 	24.1.2022 	01:55:11 	lx 	(5. palvelin)

 -- tcp answer 95, send count: 5, loop count: 8, bytes sent 340774 / 340774, 0 remaining, total send time 5012 µs. 	24.1.2022 	01:55:11 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	01:55:19 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	01:55:19 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 741 bytes ***. 	24.1.2022 	01:57:08 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:57:08 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	01:57:15 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	01:57:15 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 755 bytes ***. 	24.1.2022 	01:59:32 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	01:59:32 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	01:59:40 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	01:59:40 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 747 bytes ***. 	24.1.2022 	02:00:57 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:00:57 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:01:02 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:01:03 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 741 bytes ***. 	24.1.2022 	02:04:22 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:04:22 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:05:18 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:05:24 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 741 bytes ***. 	24.1.2022 	02:05:30 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:05:30 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:05:34 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 750 bytes ***. 	24.1.2022 	02:06:02 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:06:02 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:07:47 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:07:47 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:07:48 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:07:50 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 110, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340774, 177454 remaining, total send time 3 µs. 	24.1.2022 	02:07:50 	lx 	(5. palvelin)

 -- tcp answer 110, send result: -1, send count: 4, loop count: 5, bytes sent 326640 / 340774, 14134 remaining, total send time 1268 µs. 	24.1.2022 	02:07:50 	lx 	(5. palvelin)

 -- tcp answer 110, send count: 5, loop count: 6, bytes sent 340774 / 340774, 0 remaining, total send time 2523 µs. 	24.1.2022 	02:07:50 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:07:51 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 111, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340771, 259111 remaining, total send time 1 µs. 	24.1.2022 	02:07:51 	lx 	(5. palvelin)

 -- tcp answer 111, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340771, 177451 remaining, total send time 1264 µs. 	24.1.2022 	02:07:51 	lx 	(5. palvelin)

 -- tcp answer 111, send result: -1, send count: 3, loop count: 5, bytes sent 244980 / 340771, 95791 remaining, total send time 2506 µs. 	24.1.2022 	02:07:51 	lx 	(5. palvelin)

 -- tcp answer 111, send result: -1, send count: 4, loop count: 7, bytes sent 326640 / 340771, 14131 remaining, total send time 3779 µs. 	24.1.2022 	02:07:51 	lx 	(5. palvelin)

 -- tcp answer 111, send count: 5, loop count: 8, bytes sent 340771 / 340771, 0 remaining, total send time 5072 µs. 	24.1.2022 	02:07:51 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:08:00 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:08:03 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 742 bytes ***. 	24.1.2022 	02:10:06 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:10:06 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:10:15 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:10:18 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 744 bytes ***. 	24.1.2022 	02:13:17 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:13:17 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:13:21 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 747 bytes ***. 	24.1.2022 	02:13:34 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:13:34 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:13:38 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:13:38 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20211213.093135.4701m._prf_zzy0f01898ed801223'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:14:57 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:15:19 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 122, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340774, 177454 remaining, total send time 5 µs. 	24.1.2022 	02:15:19 	lx 	(5. palvelin)

 -- tcp answer 122, send result: -1, send count: 3, loop count: 4, bytes sent 244980 / 340774, 95794 remaining, total send time 1260 µs. 	24.1.2022 	02:15:19 	lx 	(5. palvelin)

 -- tcp answer 122, send count: 5, loop count: 6, bytes sent 340774 / 340774, 0 remaining, total send time 2495 µs. 	24.1.2022 	02:15:19 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.021457.7i001._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:15:57 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:15:58 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 126, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340774, 177454 remaining, total send time 2 µs. 	24.1.2022 	02:15:58 	lx 	(5. palvelin)

 -- tcp answer 126, send result: -1, send count: 3, loop count: 4, bytes sent 244980 / 340774, 95794 remaining, total send time 1261 µs. 	24.1.2022 	02:15:59 	lx 	(5. palvelin)

 -- tcp answer 126, send result: -1, send count: 4, loop count: 6, bytes sent 326640 / 340774, 14134 remaining, total send time 2498 µs. 	24.1.2022 	02:15:59 	lx 	(5. palvelin)

 -- tcp answer 126, send count: 5, loop count: 7, bytes sent 340774 / 340774, 0 remaining, total send time 3762 µs. 	24.1.2022 	02:15:59 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 096 bytes ***. 	24.1.2022 	02:18:39 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:18:39 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:18:57 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:18:57 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:18:59 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:18:59 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:19:00 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:19:05 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 132, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340774, 177454 remaining, total send time 2 µs. 	24.1.2022 	02:19:05 	lx 	(5. palvelin)

 -- tcp answer 132, send count: 5, loop count: 5, bytes sent 340774 / 340774, 0 remaining, total send time 1244 µs. 	24.1.2022 	02:19:05 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:19:06 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 133, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340774, 259114 remaining, total send time 1 µs. 	24.1.2022 	02:19:06 	lx 	(5. palvelin)

 -- tcp answer 133, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340774, 177454 remaining, total send time 1249 µs. 	24.1.2022 	02:19:06 	lx 	(5. palvelin)

 -- tcp answer 133, send result: -1, send count: 3, loop count: 5, bytes sent 244980 / 340774, 95794 remaining, total send time 2495 µs. 	24.1.2022 	02:19:06 	lx 	(5. palvelin)

 -- tcp answer 133, send result: -1, send count: 4, loop count: 7, bytes sent 326640 / 340774, 14134 remaining, total send time 3767 µs. 	24.1.2022 	02:19:06 	lx 	(5. palvelin)

 -- tcp answer 133, send count: 5, loop count: 8, bytes sent 340774 / 340774, 0 remaining, total send time 5085 µs. 	24.1.2022 	02:19:06 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:19:14 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:19:14 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.021558.q2002._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:19:14 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:19:16 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 139, send count: 5, loop count: 4, bytes sent 340772 / 340772, 0 remaining, total send time 41 µs. 	24.1.2022 	02:19:16 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 089 bytes ***. 	24.1.2022 	02:20:21 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:20:21 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:20:52 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:20:55 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.021915.pw003._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:21:06 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:23:17 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 145, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340772, 177452 remaining, total send time 3 µs. 	24.1.2022 	02:23:17 	lx 	(5. palvelin)

 -- tcp answer 145, send result: -1, send count: 3, loop count: 4, bytes sent 244980 / 340772, 95792 remaining, total send time 1310 µs. 	24.1.2022 	02:23:17 	lx 	(5. palvelin)

 -- tcp answer 145, send count: 5, loop count: 6, bytes sent 340772 / 340772, 0 remaining, total send time 2723 µs. 	24.1.2022 	02:23:17 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.022107.mn004._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:23:36 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:25:57 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 149, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340773, 177453 remaining, total send time 36 µs. 	24.1.2022 	02:25:57 	lx 	(5. palvelin)

 -- tcp answer 149, send result: -1, send count: 3, loop count: 4, bytes sent 244980 / 340773, 95793 remaining, total send time 1332 µs. 	24.1.2022 	02:25:57 	lx 	(5. palvelin)

 -- tcp answer 149, send result: -1, send count: 4, loop count: 6, bytes sent 326640 / 340773, 14133 remaining, total send time 2620 µs. 	24.1.2022 	02:25:57 	lx 	(5. palvelin)

 -- tcp answer 149, send count: 5, loop count: 7, bytes sent 340773 / 340773, 0 remaining, total send time 3870 µs. 	24.1.2022 	02:25:57 	lx 	(5. palvelin)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tuote). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tuote). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tilattu määrä). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Vahv. toim. pv). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Toimituspäivä). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tuote). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tuote). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tilattu määrä). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Vahv. toim. pv). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Toimituspäivä). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tuote). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tuote). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tilattu määrä). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Vahv. toim. pv). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Myyntitilauksen rivi ([Myyntitilauksen rivi]Toimituspäivä). 	24.1.2022 	02:26:30 	_fld VALUE 	(6. tbl_ 5)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 091 bytes ***. 	24.1.2022 	02:27:43 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:27:43 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:27:54 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:27:54 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.022344.lv005._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:27:54 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:27:55 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 155, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340772, 177452 remaining, total send time 3 µs. 	24.1.2022 	02:27:55 	lx 	(5. palvelin)

 -- tcp answer 155, send result: -1, send count: 3, loop count: 4, bytes sent 244980 / 340772, 95792 remaining, total send time 1231 µs. 	24.1.2022 	02:27:55 	lx 	(5. palvelin)

 -- tcp answer 155, send result: -1, send count: 4, loop count: 6, bytes sent 326640 / 340772, 14132 remaining, total send time 2473 µs. 	24.1.2022 	02:27:55 	lx 	(5. palvelin)

 -- tcp answer 155, send count: 5, loop count: 7, bytes sent 340772 / 340772, 0 remaining, total send time 3706 µs. 	24.1.2022 	02:27:55 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.022754.jw006._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:28:27 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:28:28 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 159, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340774, 259114 remaining, total send time 1 µs. 	24.1.2022 	02:28:28 	lx 	(5. palvelin)

 -- tcp answer 159, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340774, 177454 remaining, total send time 1262 µs. 	24.1.2022 	02:28:28 	lx 	(5. palvelin)

 -- tcp answer 159, send result: -1, send count: 3, loop count: 5, bytes sent 244980 / 340774, 95794 remaining, total send time 2507 µs. 	24.1.2022 	02:28:28 	lx 	(5. palvelin)

 -- tcp answer 159, send result: -1, send count: 4, loop count: 7, bytes sent 326640 / 340774, 14134 remaining, total send time 3781 µs. 	24.1.2022 	02:28:28 	lx 	(5. palvelin)

 -- tcp answer 159, send count: 5, loop count: 8, bytes sent 340774 / 340774, 0 remaining, total send time 5239 µs. 	24.1.2022 	02:28:28 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 082 bytes ***. 	24.1.2022 	02:28:34 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:28:34 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:28:41 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:28:41 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.022827.l6007._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:28:41 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:28:42 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 165, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 340774, 259114 remaining, total send time 1 µs. 	24.1.2022 	02:28:42 	lx 	(5. palvelin)

 -- tcp answer 165, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 340774, 177454 remaining, total send time 1257 µs. 	24.1.2022 	02:28:42 	lx 	(5. palvelin)

 -- tcp answer 165, send result: -1, send count: 3, loop count: 5, bytes sent 244980 / 340774, 95794 remaining, total send time 2502 µs. 	24.1.2022 	02:28:42 	lx 	(5. palvelin)

 -- tcp answer 165, send result: -1, send count: 4, loop count: 7, bytes sent 326640 / 340774, 14134 remaining, total send time 3762 µs. 	24.1.2022 	02:28:42 	lx 	(5. palvelin)

 -- tcp answer 165, send count: 5, loop count: 8, bytes sent 340774 / 340774, 0 remaining, total send time 5042 µs. 	24.1.2022 	02:28:42 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 087 bytes ***. 	24.1.2022 	02:29:36 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:29:36 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:31:55 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:31:55 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.022841.m0008._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:31:55 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:31:56 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 171, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340771, 177451 remaining, total send time 3 µs. 	24.1.2022 	02:31:56 	lx 	(5. palvelin)

 -- tcp answer 171, send result: -1, send count: 3, loop count: 4, bytes sent 244980 / 340771, 95791 remaining, total send time 1260 µs. 	24.1.2022 	02:31:56 	lx 	(5. palvelin)

 -- tcp answer 171, send result: -1, send count: 4, loop count: 6, bytes sent 326640 / 340771, 14131 remaining, total send time 2502 µs. 	24.1.2022 	02:31:56 	lx 	(5. palvelin)

 -- tcp answer 171, send count: 5, loop count: 7, bytes sent 340771 / 340771, 0 remaining, total send time 3769 µs. 	24.1.2022 	02:31:56 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.023155.iu009._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:32:07 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:32:08 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 175, send result: -1, send count: 4, loop count: 4, bytes sent 293976 / 340774, 46798 remaining, total send time 47 µs. 	24.1.2022 	02:32:08 	lx 	(5. palvelin)

 -- tcp answer 175, send count: 5, loop count: 5, bytes sent 340774 / 340774, 0 remaining, total send time 1279 µs. 	24.1.2022 	02:32:08 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.023207.jx00a._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:32:41 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:32:42 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 179, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340772, 177452 remaining, total send time 3 µs. 	24.1.2022 	02:32:42 	lx 	(5. palvelin)

 -- tcp answer 179, send count: 5, loop count: 5, bytes sent 340772 / 340772, 0 remaining, total send time 1262 µs. 	24.1.2022 	02:32:42 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 078 bytes ***. 	24.1.2022 	02:32:44 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:32:44 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:32:55 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:32:55 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.023241.jf00b._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:32:55 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 3 408 bytes ***. 	24.1.2022 	02:36:25 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:36:25 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:36:56 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:36:56 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.023256.1y00c._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:36:56 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 3 403 bytes ***. 	24.1.2022 	02:39:35 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:39:35 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:39:51 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:39:51 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.023656.kb00d._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:39:51 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:40:28 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 195, send count: 5, loop count: 4, bytes sent 340773 / 340773, 0 remaining, total send time 582 µs. 	24.1.2022 	02:40:28 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.023951.g100e._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:40:57 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:42:35 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 199, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340772, 177452 remaining, total send time 5 µs. 	24.1.2022 	02:42:36 	lx 	(5. palvelin)

 -- tcp answer 199, send result: -1, send count: 3, loop count: 4, bytes sent 244980 / 340772, 95792 remaining, total send time 1264 µs. 	24.1.2022 	02:42:36 	lx 	(5. palvelin)

 -- tcp answer 199, send result: -1, send count: 4, loop count: 6, bytes sent 326640 / 340772, 14132 remaining, total send time 2497 µs. 	24.1.2022 	02:42:36 	lx 	(5. palvelin)

 -- tcp answer 199, send count: 5, loop count: 7, bytes sent 340772 / 340772, 0 remaining, total send time 3752 µs. 	24.1.2022 	02:42:36 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.024057.gm00f._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:42:36 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 3 891 bytes ***. 	24.1.2022 	02:47:25 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:47:25 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	24.1.2022 	02:49:29 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:49:29 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:49:46 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:49:46 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.024242.6800g._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:49:46 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:50:44 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 213, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 340773, 177453 remaining, total send time 3 µs. 	24.1.2022 	02:50:44 	lx 	(5. palvelin)

 -- tcp answer 213, send result: -1, send count: 3, loop count: 4, bytes sent 244980 / 340773, 95793 remaining, total send time 1261 µs. 	24.1.2022 	02:50:44 	lx 	(5. palvelin)

 -- tcp answer 213, send result: -1, send count: 4, loop count: 6, bytes sent 326640 / 340773, 14133 remaining, total send time 2536 µs. 	24.1.2022 	02:50:44 	lx 	(5. palvelin)

 -- tcp answer 213, send count: 5, loop count: 7, bytes sent 340773 / 340773, 0 remaining, total send time 3800 µs. 	24.1.2022 	02:50:44 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.024952.i300h._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:51:09 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:51:11 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 219, send count: 5, loop count: 4, bytes sent 340776 / 340776, 0 remaining, total send time 234 µs. 	24.1.2022 	02:51:11 	lx 	(5. palvelin)

Taululle ei ole ladattu tietuetta: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tuote). 	24.1.2022 	02:51:15 	_fld VALUE 	(6. tbl_ 5)

Myyntirivin päiväys on liian pieni: 00.00.0000, 2201409/01, WE_RE_VKVLUK. 	24.1.2022 	02:51:16 	prnc_SaldoSorArrFill 	(12. Tuotetilannelaskenta)

Myyntirivin päiväys on liian pieni: 00.00.0000, 2201409/01, WE_RE_VKVLUK. 	24.1.2022 	02:51:16 	prnc_SaldoSorArrFill 	(12. Tuotetilannelaskenta)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.025109.mj00n._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:51:46 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:51:48 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 227, send result: -1, send count: 3, loop count: 3, bytes sent 244980 / 340776, 95796 remaining, total send time 81 µs. 	24.1.2022 	02:51:48 	lx 	(5. palvelin)

 -- tcp answer 227, send result: -1, send count: 4, loop count: 5, bytes sent 326640 / 340776, 14136 remaining, total send time 1321 µs. 	24.1.2022 	02:51:48 	lx 	(5. palvelin)

 -- tcp answer 227, send count: 5, loop count: 6, bytes sent 340776 / 340776, 0 remaining, total send time 2712 µs. 	24.1.2022 	02:51:48 	lx 	(5. palvelin)

Taululle ei ole ladattu tietuetta: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tuote). 	24.1.2022 	02:52:07 	_fld VALUE 	(6. tbl_ 5)

Myyntirivin päiväys on liian pieni: 00.00.0000, 2201410/01, TU_VEISMILUXV1. 	24.1.2022 	02:52:17 	prnc_SaldoSorArrFill 	(12. Tuotetilannelaskenta)

Tarkasta työmääräin. Myyntitilaus tai myyntitilauksen rivi kenttien arvo saattaa olla väärin: 009424/20. 	24.1.2022 	02:52:18 	ld_ProductionLotDeliveryDate 	(12. Tuotetilannelaskenta)

Työmääräimen päiväys on liian pieni: 00.00.0000, 012507/22, VK_YA56BR191. 	24.1.2022 	02:52:21 	prnc_SaldoWoArrFill 	(12. Tuotetilannelaskenta)

Taulun valinnassa ei ole tietueita: Tuote ([Tuote]Ei käytössä). 	24.1.2022 	02:52:57 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Tuote ([Tuote]TUNNUS). 	24.1.2022 	02:52:57 	_fld VALUE 	(6. tbl_ 5)

Myyntikoodia ei löytynyt: ''. 	24.1.2022 	02:52:57 	soc_ NewCodeGet 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Tuote ([Tuote]Ei käytössä). 	24.1.2022 	02:53:00 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Tuote ([Tuote]TUNNUS). 	24.1.2022 	02:53:00 	_fld VALUE 	(6. tbl_ 5)

Myyntikoodia ei löytynyt: ''. 	24.1.2022 	02:53:00 	soc_ NewCodeGet 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Tuote ([Tuote]Ei käytössä). 	24.1.2022 	02:53:04 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Tuote ([Tuote]TUNNUS). 	24.1.2022 	02:53:04 	_fld VALUE 	(6. tbl_ 5)

Myyntikoodia ei löytynyt: ''. 	24.1.2022 	02:53:04 	soc_ NewCodeGet 	(6. tbl_ 5)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.025147.0e00q._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:53:19 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:53:21 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 234, send result: -1, send count: 4, loop count: 4, bytes sent 261312 / 340773, 79461 remaining, total send time 736 µs. 	24.1.2022 	02:53:21 	lx 	(5. palvelin)

 -- tcp answer 234, send count: 5, loop count: 5, bytes sent 340773 / 340773, 0 remaining, total send time 2827 µs. 	24.1.2022 	02:53:21 	lx 	(5. palvelin)

Taululle ei ole ladattu tietuetta: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tuote). 	24.1.2022 	02:53:31 	_fld VALUE 	(6. tbl_ 5)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:54:11 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 235, send count: 5, loop count: 4, bytes sent 340773 / 340773, 0 remaining, total send time 109 µs. 	24.1.2022 	02:54:11 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:54:13 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:54:13 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:54:13 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:54:27 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 239, send count: 5, loop count: 4, bytes sent 340775 / 340775, 0 remaining, total send time 936 µs. 	24.1.2022 	02:54:27 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:54:28 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 240, send count: 5, loop count: 4, bytes sent 340774 / 340774, 0 remaining, total send time 1629 µs. 	24.1.2022 	02:54:28 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:55:20 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:55:20 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:55:20 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:55:24 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 244, send count: 5, loop count: 4, bytes sent 340774 / 340774, 0 remaining, total send time 1646 µs. 	24.1.2022 	02:55:24 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:55:25 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 245, send count: 5, loop count: 4, bytes sent 340774 / 340774, 0 remaining, total send time 1618 µs. 	24.1.2022 	02:55:26 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.025319.fx00v._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	02:55:36 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:55:38 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 252, send count: 5, loop count: 4, bytes sent 340774 / 340774, 0 remaining, total send time 1414 µs. 	24.1.2022 	02:55:38 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 075 bytes ***. 	24.1.2022 	02:56:13 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	02:56:13 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:56:36 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:56:36 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	02:56:37 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:56:46 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 256, send count: 5, loop count: 4, bytes sent 340774 / 340774, 0 remaining, total send time 1175 µs. 	24.1.2022 	02:56:46 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:56:47 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 257, send result: -1, send count: 4, loop count: 4, bytes sent 261312 / 340773, 79461 remaining, total send time 609 µs. 	24.1.2022 	02:56:47 	lx 	(5. palvelin)

 -- tcp answer 257, send count: 5, loop count: 5, bytes sent 340773 / 340773, 0 remaining, total send time 2827 µs. 	24.1.2022 	02:56:47 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:58:07 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 258, send count: 5, loop count: 4, bytes sent 340774 / 340774, 0 remaining, total send time 1590 µs. 	24.1.2022 	02:58:07 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:58:39 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 259, send count: 5, loop count: 4, bytes sent 340773 / 340773, 0 remaining, total send time 721 µs. 	24.1.2022 	02:58:39 	lx 	(5. palvelin)

Kapasiteettia ei löytynyt, työn päivä on pienempi kuin kapasiteetin alkupäivä, kapasiteetti: Default 6.10.2020 < 12.10.2020, kuorm. ryhmä: TYYVIIM, työvaihe: 012247/19#04. 	24.1.2022 	02:58:59 	ldcap_IndexNextCapacity 	(12. Tuotetilannelaskenta)

Kapasiteettia ei löytynyt, työn päivä on pienempi kuin kapasiteetin alkupäivä, kapasiteetti: Default 00.00.00 < 12.10.2020, kuorm. ryhmä: TYYVIIM, työvaihe: 012247/19#04. 	24.1.2022 	02:58:59 	ldcap_IndexNextCapacity 	(12. Tuotetilannelaskenta)

Kapasiteettia ei löytynyt, työn päivä on pienempi kuin kapasiteetin alkupäivä, kapasiteetti: TYYNY 12.10.2020 < 26.10.2020, kuorm. ryhmä: TYYNY, työvaihe: 012247/19#03. 	24.1.2022 	02:58:59 	ldcap_IndexNextCapacity 	(12. Tuotetilannelaskenta)

Kapasiteettia ei löytynyt, työn päivä on pienempi kuin kapasiteetin alkupäivä, kapasiteetti: TYYNY 00.00.00 < 26.10.2020, kuorm. ryhmä: TYYNY, työvaihe: 012247/19#03. 	24.1.2022 	02:58:59 	ldcap_IndexNextCapacity 	(12. Tuotetilannelaskenta)

Vaiheen kriittinen päivä on suurempi kuin kriittinen päivä valmistuserällä: Rivi 4808. TY_TE4451 | 012247/19, 21.10.2020 > 6.10.2020. 	24.1.2022 	02:58:59 	ld_calc_ NeedDownDateFromPhase 	(12. Tuotetilannelaskenta)

Kriittinen alkupäivä on suurempi kuin kriittinen päivä: TY_TE4451	012247/19. 	24.1.2022 	02:58:59 	prnc_CR_DATES_IN_ARR_SAVE 	(12. Tuotetilannelaskenta)

Kuormitusryhmää ei löytynyt: ’’, work phase: Uusi_012848#01. 	24.1.2022 	02:59:13 	ld_calc_NEW_PHASES_TO_ARR_SET 	(12. Tuotetilannelaskenta)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.sales_order_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	02:59:15 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 260, send count: 5, loop count: 4, bytes sent 340774 / 340774, 0 remaining, total send time 792 µs. 	24.1.2022 	02:59:15 	lx 	(5. palvelin)

Kapasitettia ei löytynyt, työn päiväys on pienempi kuin kapasitettin alkupäivä, kuorm. ryhmä: KUOMUPIENI, työaika:11666, työvaihe: Uusi_012410#02 30.11.2020 > 30.11.2020, kuorm. ryhmä: KUOMUPIENI, työaika:11666, työvaihe: Uusi_012410#02. 	24.1.2022 	03:00:27 	ld_WORK_MOVE_CALCULATE 	(12. Tuotetilannelaskenta)

Virtuaalista työmääräintä ei löytynyt laskentataulukoista VK_YA56BR191 | RE_VKVUSPTY70M |  | Uusi_012507_012507/22#00	24.1.2023	1. 	24.1.2022 	03:00:35 	ld_calc_ NeedDownDateFromPhase 	(12. Tuotetilannelaskenta)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 500, first value: '2001066'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:01:25 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 261, send count: 5, loop count: 4, bytes sent 340291 / 340291, 0 remaining, total send time 834 µs. 	24.1.2022 	03:01:25 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1000, first value: '2100380'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:02:20 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 262, send count: 11, loop count: 10, bytes sent 800750 / 800750, 0 remaining, total send time 3103 µs. 	24.1.2022 	03:02:20 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 10000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 10000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1584, first value: '2201410'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:02:52 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 263, send result: -1, send count: 9, loop count: 9, bytes sent 734940 / 1319022, 584082 remaining, total send time 3768 µs. 	24.1.2022 	03:02:52 	lx 	(5. palvelin)

 -- tcp answer 263, send count: 17, loop count: 17, bytes sent 1319022 / 1319022, 0 remaining, total send time 8370 µs. 	24.1.2022 	03:02:52 	lx 	(5. palvelin)

Myyntirivin päiväys on liian pieni: 00.00.0000, 2201410/01, TU_VEISMILUXV1. 	24.1.2022 	03:05:40 	prnc_SaldoSorArrFill 	(12. Tuotetilannelaskenta)

Myyntirivin päiväys on liian pieni: 00.00.0000, 2201410/01, TU_VEISMILUXV1. 	24.1.2022 	03:05:42 	prnc_SaldoSorArrFill 	(12. Tuotetilannelaskenta)

Myyntirivin päiväys on liian pieni: 00.00.0000, 2201409/01, WE_RE_VKVLUK. 	24.1.2022 	03:05:43 	prnc_SaldoSorArrFill 	(12. Tuotetilannelaskenta)

Myyntirivin päiväys on liian pieni: 00.00.0000, 2201409/01, WE_RE_VKVLUK. 	24.1.2022 	03:05:44 	prnc_SaldoSorArrFill 	(12. Tuotetilannelaskenta)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:07:28 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:07:29 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:07:29 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 10000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 10000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1584, first value: '2201410'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:07:33 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 267, send result: -1, send count: 7, loop count: 7, bytes sent 522624 / 1319026, 796402 remaining, total send time 124 µs. 	24.1.2022 	03:07:33 	lx 	(5. palvelin)

 -- tcp answer 267, send result: -1, send count: 8, loop count: 9, bytes sent 604284 / 1319026, 714742 remaining, total send time 1380 µs. 	24.1.2022 	03:07:33 	lx 	(5. palvelin)

 -- tcp answer 267, send result: -1, send count: 10, loop count: 13, bytes sent 767604 / 1319026, 551422 remaining, total send time 3993 µs. 	24.1.2022 	03:07:33 	lx 	(5. palvelin)

 -- tcp answer 267, send result: -1, send count: 12, loop count: 16, bytes sent 930924 / 1319026, 388102 remaining, total send time 5564 µs. 	24.1.2022 	03:07:33 	lx 	(5. palvelin)

 -- tcp answer 267, send count: 18, loop count: 22, bytes sent 1319026 / 1319026, 0 remaining, total send time 6900 µs. 	24.1.2022 	03:07:33 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 10000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 10000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1584, first value: '2201410'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:07:34 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 268, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 1319023, 1237363 remaining, total send time 60 µs. 	24.1.2022 	03:07:34 	lx 	(5. palvelin)

 -- tcp answer 268, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 1319023, 1155703 remaining, total send time 1303 µs. 	24.1.2022 	03:07:34 	lx 	(5. palvelin)

 -- tcp answer 268, send result: -1, send count: 5, loop count: 7, bytes sent 342972 / 1319023, 976051 remaining, total send time 2747 µs. 	24.1.2022 	03:07:35 	lx 	(5. palvelin)

 -- tcp answer 268, send result: -1, send count: 6, loop count: 9, bytes sent 424632 / 1319023, 894391 remaining, total send time 4019 µs. 	24.1.2022 	03:07:35 	lx 	(5. palvelin)

 -- tcp answer 268, send result: -1, send count: 10, loop count: 15, bytes sent 685944 / 1319023, 633079 remaining, total send time 6878 µs. 	24.1.2022 	03:07:35 	lx 	(5. palvelin)

 -- tcp answer 268, send result: -1, send count: 16, loop count: 22, bytes sent 1110576 / 1319023, 208447 remaining, total send time 8937 µs. 	24.1.2022 	03:07:35 	lx 	(5. palvelin)

error:  -- tcp answer 268, remaining bytes send failed with result code: -100, bytes sent: 1192236 / 1319023, total send time 10232 µs
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:546: in function 'printError'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:318: in function 'send'
	/Users/pasi/nc/nc-server/lib/server.lua:141: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:123: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:146: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:129>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:66: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:18>]
. 	24.1.2022 	03:07:35 	lx 	(5. palvelin)

error:  -- tcp answer 268, remaining bytes send failed with result code: -100, bytes sent: 1192236 / 1319023, total send time 10232 µs
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:546: in function 'printError'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:318: in function 'send'
	/Users/pasi/nc/nc-server/lib/server.lua:141: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:123: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:146: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:129>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:66: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:18>]. 	24.1.2022 	03:07:35 	_lx_SERVER 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 093 bytes ***. 	24.1.2022 	03:08:00 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	03:08:00 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1584, first value: '2201410'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:08:05 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 269, send result: -1, send count: 5, loop count: 5, bytes sent 408300 / 1319027, 910727 remaining, total send time 52 µs. 	24.1.2022 	03:08:06 	lx 	(5. palvelin)

 -- tcp answer 269, send result: -1, send count: 6, loop count: 7, bytes sent 489960 / 1319027, 829067 remaining, total send time 1302 µs. 	24.1.2022 	03:08:06 	lx 	(5. palvelin)

 -- tcp answer 269, send result: -1, send count: 7, loop count: 9, bytes sent 571620 / 1319027, 747407 remaining, total send time 2702 µs. 	24.1.2022 	03:08:06 	lx 	(5. palvelin)

 -- tcp answer 269, send result: -1, send count: 14, loop count: 18, bytes sent 1077912 / 1319027, 241115 remaining, total send time 5536 µs. 	24.1.2022 	03:08:06 	lx 	(5. palvelin)

 -- tcp answer 269, send result: -1, send count: 15, loop count: 20, bytes sent 1159572 / 1319027, 159455 remaining, total send time 6826 µs. 	24.1.2022 	03:08:06 	lx 	(5. palvelin)

 -- tcp answer 269, send count: 17, loop count: 22, bytes sent 1319027 / 1319027, 0 remaining, total send time 8436 µs. 	24.1.2022 	03:08:06 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	03:10:24 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	03:10:25 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.025536.j000z._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	03:10:25 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1584, first value: '5998'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:10:27 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 284, send result: -1, send count: 7, loop count: 7, bytes sent 506292 / 1319622, 813330 remaining, total send time 78 µs. 	24.1.2022 	03:10:28 	lx 	(5. palvelin)

 -- tcp answer 284, send result: -1, send count: 8, loop count: 9, bytes sent 587952 / 1319622, 731670 remaining, total send time 1337 µs. 	24.1.2022 	03:10:28 	lx 	(5. palvelin)

 -- tcp answer 284, send result: -1, send count: 16, loop count: 19, bytes sent 1175904 / 1319622, 143718 remaining, total send time 3921 µs. 	24.1.2022 	03:10:28 	lx 	(5. palvelin)

 -- tcp answer 284, send result: -1, send count: 17, loop count: 21, bytes sent 1257564 / 1319622, 62058 remaining, total send time 5371 µs. 	24.1.2022 	03:10:28 	lx 	(5. palvelin)

 -- tcp answer 284, send count: 18, loop count: 22, bytes sent 1319622 / 1319622, 0 remaining, total send time 6701 µs. 	24.1.2022 	03:10:28 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1578, first value: '2201374'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:10:58 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 285, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 1311263, 1147943 remaining, total send time 165 µs. 	24.1.2022 	03:10:58 	lx 	(5. palvelin)

 -- tcp answer 285, send result: -1, send count: 6, loop count: 7, bytes sent 473628 / 1311263, 837635 remaining, total send time 1430 µs. 	24.1.2022 	03:10:58 	lx 	(5. palvelin)

 -- tcp answer 285, send result: -1, send count: 8, loop count: 10, bytes sent 636948 / 1311263, 674315 remaining, total send time 2702 µs. 	24.1.2022 	03:10:58 	lx 	(5. palvelin)

 -- tcp answer 285, send result: -1, send count: 15, loop count: 19, bytes sent 1143240 / 1311263, 168023 remaining, total send time 5320 µs. 	24.1.2022 	03:10:59 	lx 	(5. palvelin)

 -- tcp answer 285, send result: -1, send count: 16, loop count: 21, bytes sent 1224900 / 1311263, 86363 remaining, total send time 6610 µs. 	24.1.2022 	03:10:59 	lx 	(5. palvelin)

error:  -- tcp answer 285, remaining bytes send failed with result code: -100, bytes sent: 1306560 / 1311263, total send time 7885 µs
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:546: in function 'printError'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:318: in function 'send'
	/Users/pasi/nc/nc-server/lib/server.lua:141: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:123: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:146: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:129>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:66: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:18>]
. 	24.1.2022 	03:10:59 	lx 	(5. palvelin)

error:  -- tcp answer 285, remaining bytes send failed with result code: -100, bytes sent: 1306560 / 1311263, total send time 7885 µs
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:546: in function 'printError'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:318: in function 'send'
	/Users/pasi/nc/nc-server/lib/server.lua:141: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:123: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:146: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:129>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:66: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:18>]. 	24.1.2022 	03:10:59 	_lx_SERVER 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 096 bytes ***. 	24.1.2022 	03:11:16 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	03:11:16 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 1500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 1500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1500, first value: '2200333'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:11:34 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 286, send result: -1, send count: 3, loop count: 3, bytes sent 244980 / 1226400, 981420 remaining, total send time 55 µs. 	24.1.2022 	03:11:34 	lx 	(5. palvelin)

 -- tcp answer 286, send result: -1, send count: 8, loop count: 9, bytes sent 620616 / 1226400, 605784 remaining, total send time 1302 µs. 	24.1.2022 	03:11:34 	lx 	(5. palvelin)

 -- tcp answer 286, send result: -1, send count: 11, loop count: 14, bytes sent 849264 / 1226400, 377136 remaining, total send time 3900 µs. 	24.1.2022 	03:11:34 	lx 	(5. palvelin)

 -- tcp answer 286, send count: 17, loop count: 20, bytes sent 1226400 / 1226400, 0 remaining, total send time 5387 µs. 	24.1.2022 	03:11:34 	lx 	(5. palvelin)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	24.1.2022 	03:12:03 	_lx_SERVER 	(9. tbl_ 8)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	24.1.2022 	03:12:04 	lx 	(5. palvelin)

closing socket '73'. 	24.1.2022 	03:12:04 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	24.1.2022 	03:12:04 	lx 	(5. palvelin)

closing socket '77'. 	24.1.2022 	03:12:04 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          286
poll.fd_count:        1
pollCount:            477768
pollInCount:          331
pollOutCount:         0
pollCloseCount:       44
pollErrCount:         0
fd add/remove count:  47/46
totalBytesReceived:   352674
totalBytesSent:       5675369. 	24.1.2022 	03:12:04 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 78
. 	24.1.2022 	03:12:04 	lx 	(5. palvelin)

closing socket '78'. 	24.1.2022 	03:12:04 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0155c80330. 	24.1.2022 	03:12:04 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0155c80330, size: 400. 	24.1.2022 	03:12:04 	lx 	(5. palvelin)

--- server stopped ---. 	24.1.2022 	03:12:04 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0155c80330. 	24.1.2022 	03:12:04 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	24.1.2022 	03:12:04 	_lx_SERVER 	(5. palvelin)

Käynnisteään Tcp palvelin 2. 	24.1.2022 	03:12:06 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

  database connect time: 0.0003 seconds. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0298409340, size: 400. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

All plugins have been loaded. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

--- server started in 0.0018 seconds, 2022-01-24 03:12:08, used memory 3027.5 kb --- 	 5. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	24.1.2022 	03:12:08 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-24 03:12:19
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 815
Content-Uncompressed-Length: 1195

LZ4. 	24.1.2022 	03:12:19 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	24.1.2022 	03:12:19 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	24.1.2022 	03:12:19 	lx 	(5. palvelin)

  database connect time: 0.0001 seconds. 	24.1.2022 	03:12:19 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	24.1.2022 	03:12:19 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 1500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 1500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1500, first value: '2200333'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:12:19 	_lx_ExecuteSqlNew 	(5. palvelin)

 1. answer time: 00:00:00.02117
  
SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id
 FROM sales_order so
 WHERE so.project_id <> ''
 ORDER BY so.project_id DESC
 LIMIT 1500. 	24.1.2022 	03:12:19 	lx 	(5. palvelin)

 -- tcp answer 1, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 1227149, 1063829 remaining, total send time 2 µs. 	24.1.2022 	03:12:19 	lx 	(5. palvelin)

 -- tcp answer 1, send result: -1, send count: 9, loop count: 10, bytes sent 685944 / 1227149, 541205 remaining, total send time 1248 µs. 	24.1.2022 	03:12:20 	lx 	(5. palvelin)

 -- tcp answer 1, send result: -1, send count: 11, loop count: 14, bytes sent 849264 / 1227149, 377885 remaining, total send time 3769 µs. 	24.1.2022 	03:12:20 	lx 	(5. palvelin)

 -- tcp answer 1, send result: -1, send count: 12, loop count: 16, bytes sent 930924 / 1227149, 296225 remaining, total send time 5075 µs. 	24.1.2022 	03:12:20 	lx 	(5. palvelin)

 -- tcp answer 1, send result: -1, send count: 14, loop count: 19, bytes sent 1028916 / 1227149, 198233 remaining, total send time 6417 µs. 	24.1.2022 	03:12:20 	lx 	(5. palvelin)

 -- tcp answer 1, send result: -1, send count: 15, loop count: 21, bytes sent 1110576 / 1227149, 116573 remaining, total send time 7781 µs. 	24.1.2022 	03:12:20 	lx 	(5. palvelin)

 -- tcp answer 1, send count: 17, loop count: 23, bytes sent 1227149 / 1227149, 0 remaining, total send time 9079 µs. 	24.1.2022 	03:12:20 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 1500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 1500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1500, first value: '2200333'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:12:31 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 2, send result: -1, send count: 7, loop count: 7, bytes sent 522624 / 1227147, 704523 remaining, total send time 52 µs. 	24.1.2022 	03:12:31 	lx 	(5. palvelin)

 -- tcp answer 2, send result: -1, send count: 8, loop count: 9, bytes sent 604284 / 1227147, 622863 remaining, total send time 1307 µs. 	24.1.2022 	03:12:32 	lx 	(5. palvelin)

 -- tcp answer 2, send result: -1, send count: 16, loop count: 19, bytes sent 1192236 / 1227147, 34911 remaining, total send time 3981 µs. 	24.1.2022 	03:12:32 	lx 	(5. palvelin)

 -- tcp answer 2, send count: 17, loop count: 20, bytes sent 1227147 / 1227147, 0 remaining, total send time 5424 µs. 	24.1.2022 	03:12:32 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:12:36 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:12:36 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:12:37 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 1500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 1500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1500, first value: '2200333'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:12:41 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 6, send result: -1, send count: 7, loop count: 7, bytes sent 506292 / 1227149, 720857 remaining, total send time 44 µs. 	24.1.2022 	03:12:41 	lx 	(5. palvelin)

 -- tcp answer 6, send result: -1, send count: 15, loop count: 17, bytes sent 1077912 / 1227149, 149237 remaining, total send time 2601 µs. 	24.1.2022 	03:12:42 	lx 	(5. palvelin)

 -- tcp answer 6, send count: 17, loop count: 19, bytes sent 1227149 / 1227149, 0 remaining, total send time 3869 µs. 	24.1.2022 	03:12:42 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 1500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 1500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1500, first value: '2200333'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:12:43 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 7, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 1227148, 1145488 remaining, total send time 47 µs. 	24.1.2022 	03:12:43 	lx 	(5. palvelin)

 -- tcp answer 7, send result: -1, send count: 2, loop count: 3, bytes sent 163320 / 1227148, 1063828 remaining, total send time 1284 µs. 	24.1.2022 	03:12:43 	lx 	(5. palvelin)

 -- tcp answer 7, send result: -1, send count: 4, loop count: 6, bytes sent 277644 / 1227148, 949504 remaining, total send time 2827 µs. 	24.1.2022 	03:12:43 	lx 	(5. palvelin)

 -- tcp answer 7, send result: -1, send count: 5, loop count: 8, bytes sent 359304 / 1227148, 867844 remaining, total send time 4325 µs. 	24.1.2022 	03:12:43 	lx 	(5. palvelin)

 -- tcp answer 7, send result: -1, send count: 12, loop count: 17, bytes sent 865596 / 1227148, 361552 remaining, total send time 6823 µs. 	24.1.2022 	03:12:43 	lx 	(5. palvelin)

 -- tcp answer 7, send result: -1, send count: 13, loop count: 19, bytes sent 947256 / 1227148, 279892 remaining, total send time 8491 µs. 	24.1.2022 	03:12:43 	lx 	(5. palvelin)

 -- tcp answer 7, send result: -1, send count: 16, loop count: 23, bytes sent 1192236 / 1227148, 34912 remaining, total send time 9764 µs. 	24.1.2022 	03:12:43 	lx 	(5. palvelin)

 -- tcp answer 7, send count: 17, loop count: 24, bytes sent 1227148 / 1227148, 0 remaining, total send time 11698 µs. 	24.1.2022 	03:12:43 	lx 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	03:12:59 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	03:12:59 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.031025.cm013._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	03:12:59 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 1500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 1500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1500, first value: '2200333'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:13:02 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 22, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 1227148, 1063828 remaining, total send time 120 µs. 	24.1.2022 	03:13:02 	lx 	(5. palvelin)

 -- tcp answer 22, send result: -1, send count: 3, loop count: 4, bytes sent 244980 / 1227148, 982168 remaining, total send time 1356 µs. 	24.1.2022 	03:13:02 	lx 	(5. palvelin)

 -- tcp answer 22, send result: -1, send count: 4, loop count: 6, bytes sent 326640 / 1227148, 900508 remaining, total send time 2634 µs. 	24.1.2022 	03:13:02 	lx 	(5. palvelin)

 -- tcp answer 22, send result: -1, send count: 5, loop count: 8, bytes sent 408300 / 1227148, 818848 remaining, total send time 3895 µs. 	24.1.2022 	03:13:02 	lx 	(5. palvelin)

 -- tcp answer 22, send result: -1, send count: 12, loop count: 17, bytes sent 947256 / 1227148, 279892 remaining, total send time 6416 µs. 	24.1.2022 	03:13:02 	lx 	(5. palvelin)

 -- tcp answer 22, send result: -1, send count: 13, loop count: 19, bytes sent 1028916 / 1227148, 198232 remaining, total send time 7748 µs. 	24.1.2022 	03:13:02 	lx 	(5. palvelin)

 -- tcp answer 22, send count: 16, loop count: 22, bytes sent 1227148 / 1227148, 0 remaining, total send time 9074 µs. 	24.1.2022 	03:13:02 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 1500 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 1500  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1500, first value: '2200333'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:13:41 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 23, send result: -1, send count: 6, loop count: 6, bytes sent 457296 / 1227148, 769852 remaining, total send time 53 µs. 	24.1.2022 	03:13:41 	lx 	(5. palvelin)

 -- tcp answer 23, send result: -1, send count: 7, loop count: 8, bytes sent 538956 / 1227148, 688192 remaining, total send time 1309 µs. 	24.1.2022 	03:13:41 	lx 	(5. palvelin)

 -- tcp answer 23, send result: -1, send count: 8, loop count: 10, bytes sent 620616 / 1227148, 606532 remaining, total send time 2597 µs. 	24.1.2022 	03:13:41 	lx 	(5. palvelin)

 -- tcp answer 23, send result: -1, send count: 16, loop count: 20, bytes sent 1208568 / 1227148, 18580 remaining, total send time 5197 µs. 	24.1.2022 	03:13:42 	lx 	(5. palvelin)

 -- tcp answer 23, send count: 17, loop count: 21, bytes sent 1227148 / 1227148, 0 remaining, total send time 6476 µs. 	24.1.2022 	03:13:42 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> ''  ORDER BY so.project_id DESC  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1579, first value: '2201414'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:13:54 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 24, send result: -1, send count: 5, loop count: 5, bytes sent 408300 / 1313929, 905629 remaining, total send time 167 µs. 	24.1.2022 	03:13:54 	lx 	(5. palvelin)

 -- tcp answer 24, send result: -1, send count: 6, loop count: 7, bytes sent 489960 / 1313929, 823969 remaining, total send time 1425 µs. 	24.1.2022 	03:13:54 	lx 	(5. palvelin)

 -- tcp answer 24, send result: -1, send count: 8, loop count: 10, bytes sent 653280 / 1313929, 660649 remaining, total send time 2876 µs. 	24.1.2022 	03:13:54 	lx 	(5. palvelin)

 -- tcp answer 24, send result: -1, send count: 11, loop count: 15, bytes sent 898260 / 1313929, 415669 remaining, total send time 5780 µs. 	24.1.2022 	03:13:55 	lx 	(5. palvelin)

 -- tcp answer 24, send result: -1, send count: 12, loop count: 17, bytes sent 979920 / 1313929, 334009 remaining, total send time 7058 µs. 	24.1.2022 	03:13:55 	lx 	(5. palvelin)

 -- tcp answer 24, send result: -1, send count: 14, loop count: 20, bytes sent 1143240 / 1313929, 170689 remaining, total send time 8683 µs. 	24.1.2022 	03:13:55 	lx 	(5. palvelin)

 -- tcp answer 24, send result: -1, send count: 15, loop count: 22, bytes sent 1224900 / 1313929, 89029 remaining, total send time 9973 µs. 	24.1.2022 	03:13:55 	lx 	(5. palvelin)

 -- tcp answer 24, send count: 17, loop count: 24, bytes sent 1313929 / 1313929, 0 remaining, total send time 11779 µs. 	24.1.2022 	03:13:55 	lx 	(5. palvelin)

SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= ''  ORDER BY sor.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:15:43 	_lx_ExecuteSqlNew 	(5. palvelin)

sql: Error 0, Failed to parse timestamp. (SQLS 1512)
Failed to build DB4D query. (SQLS 1819)
Failed to execute WHERE clause. (SQLS 1813)
Failed to execute SELECT command. (SQLS 1801)
Failed to parse timestamp.Failed to build DB4D query.Failed to execute WHERE clause.Failed to execute SELECT command. (SQLS 1502)

SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so
 WHERE so.project_id <> '' AND so.order_date >= ''
 ORDER BY sor.sales_order_id DESC
 LIMIT 1000
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
'
SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so
 WHERE so.project_id <> '' AND so.order_date >= ''
 ORDER BY sor.sales_order_id DESC
 LIMIT 1000
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
'
 	24.1.2022 	03:15:43 	_lx_ExecuteSqlNew 	(5. palvelin)

4d execute sql error -1: Error 0, Failed to parse timestamp. (SQLS 1512)
Failed to build DB4D query. (SQLS 1819)
Failed to execute WHERE clause. (SQLS 1813)
Failed to execute SELECT command. (SQLS 1801)
Failed to parse timestamp.Failed to build DB4D query.Failed to execute WHERE clause.Failed to execute SELECT command. (SQLS 1502)

SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so
 WHERE so.project_id <> '' AND so.order_date >= ''
 ORDER BY sor.sales_order_id DESC
 LIMIT 1000
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8. 	24.1.2022 	03:15:43 	_lx_SERVER 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-06-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-06-01'  ORDER BY sor.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 312, first value: '2101311'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:16:04 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 26, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 291212, 127892 remaining, total send time 60 µs. 	24.1.2022 	03:16:04 	lx 	(5. palvelin)

 -- tcp answer 26, send result: -1, send count: 3, loop count: 4, bytes sent 244980 / 291212, 46232 remaining, total send time 1321 µs. 	24.1.2022 	03:16:04 	lx 	(5. palvelin)

 -- tcp answer 26, send count: 4, loop count: 5, bytes sent 291212 / 291212, 0 remaining, total send time 2604 µs. 	24.1.2022 	03:16:04 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:16:22 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:16:22 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:16:22 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-06-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-06-01'  ORDER BY sor.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 312, first value: '2101311'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:16:25 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 30, send count: 4, loop count: 3, bytes sent 291212 / 291212, 0 remaining, total send time 7 µs. 	24.1.2022 	03:16:25 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-06-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-06-01'  ORDER BY sor.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 312, first value: '2101311'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:16:25 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 31, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 291212, 127892 remaining, total send time 57 µs. 	24.1.2022 	03:16:25 	lx 	(5. palvelin)

 -- tcp answer 31, send result: -1, send count: 3, loop count: 4, bytes sent 244980 / 291212, 46232 remaining, total send time 1315 µs. 	24.1.2022 	03:16:25 	lx 	(5. palvelin)

 -- tcp answer 31, send count: 4, loop count: 5, bytes sent 291212 / 291212, 0 remaining, total send time 2926 µs. 	24.1.2022 	03:16:25 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-06-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-06-01'  ORDER BY so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 312, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:17:00 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 32, send result: -1, send count: 3, loop count: 3, bytes sent 244980 / 294182, 49202 remaining, total send time 69 µs. 	24.1.2022 	03:17:00 	lx 	(5. palvelin)

 -- tcp answer 32, send count: 4, loop count: 4, bytes sent 294182 / 294182, 0 remaining, total send time 1325 µs. 	24.1.2022 	03:17:00 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-06-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-06-01'  ORDER BY so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 312, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:17:16 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 33, send count: 4, loop count: 3, bytes sent 294226 / 294226, 0 remaining, total send time 208 µs. 	24.1.2022 	03:17:16 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-06-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-06-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 312, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:17:47 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 34, send count: 4, loop count: 3, bytes sent 294182 / 294182, 0 remaining, total send time 4 µs. 	24.1.2022 	03:17:47 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-06-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-06-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 312, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:17:50 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 35, send count: 4, loop count: 3, bytes sent 294226 / 294226, 0 remaining, total send time 10 µs. 	24.1.2022 	03:17:50 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.order_date, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_adExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 127, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:19:19 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.order_date, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_adExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 127, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:19:27 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.order_date, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_adExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 127, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:19:56 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.031259.dw001._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	03:20:34 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.order_date, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_adExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:20:35 	_lx_ExecuteSqlNew 	(5. palvelin)

Taulun valinnassa ei ole tietueita: Tuote ([Tuote]Ei käytössä). 	24.1.2022 	03:21:17 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Tuote ([Tuote]TUNNUS). 	24.1.2022 	03:21:17 	_fld VALUE 	(6. tbl_ 5)

Myyntikoodia ei löytynyt: ''. 	24.1.2022 	03:21:17 	soc_ NewCodeGet 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Tuote ([Tuote]Ei käytössä). 	24.1.2022 	03:21:25 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Tuote ([Tuote]TUNNUS). 	24.1.2022 	03:21:25 	_fld VALUE 	(6. tbl_ 5)

Myyntikoodia ei löytynyt: ''. 	24.1.2022 	03:21:25 	soc_ NewCodeGet 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Tuote ([Tuote]Ei käytössä). 	24.1.2022 	03:21:29 	_fld VALUE 	(6. tbl_ 5)

Taulun valinnassa ei ole tietueita: Tuote ([Tuote]TUNNUS). 	24.1.2022 	03:21:29 	_fld VALUE 	(6. tbl_ 5)

Myyntikoodia ei löytynyt: ''. 	24.1.2022 	03:21:29 	soc_ NewCodeGet 	(6. tbl_ 5)

Myyntirivin päiväys on liian pieni: 00.00.0000, 2201415/01, WE_TU_SWBALEBECA. 	24.1.2022 	03:21:37 	prnc_SaldoSorArrFill 	(12. Tuotetilannelaskenta)

Myyntirivin päiväys on liian pieni: 00.00.0000, 2201415/02, TU_VEISMIGTCAOT. 	24.1.2022 	03:21:37 	prnc_SaldoSorArrFill 	(12. Tuotetilannelaskenta)

Kapasiteettia ei löytynyt, työn päivä on pienempi kuin kapasiteetin alkupäivä, kapasiteetti: Default 6.10.2020 < 12.10.2020, kuorm. ryhmä: TYYVIIM, työvaihe: 012247/19#04. 	24.1.2022 	03:22:04 	ldcap_IndexNextCapacity 	(12. Tuotetilannelaskenta)

Kapasiteettia ei löytynyt, työn päivä on pienempi kuin kapasiteetin alkupäivä, kapasiteetti: Default 00.00.00 < 12.10.2020, kuorm. ryhmä: TYYVIIM, työvaihe: 012247/19#04. 	24.1.2022 	03:22:04 	ldcap_IndexNextCapacity 	(12. Tuotetilannelaskenta)

Kapasiteettia ei löytynyt, työn päivä on pienempi kuin kapasiteetin alkupäivä, kapasiteetti: TYYNY 12.10.2020 < 26.10.2020, kuorm. ryhmä: TYYNY, työvaihe: 012247/19#03. 	24.1.2022 	03:22:04 	ldcap_IndexNextCapacity 	(12. Tuotetilannelaskenta)

Kapasiteettia ei löytynyt, työn päivä on pienempi kuin kapasiteetin alkupäivä, kapasiteetti: TYYNY 00.00.00 < 26.10.2020, kuorm. ryhmä: TYYNY, työvaihe: 012247/19#03. 	24.1.2022 	03:22:04 	ldcap_IndexNextCapacity 	(12. Tuotetilannelaskenta)

Vaiheen kriittinen päivä on suurempi kuin kriittinen päivä valmistuserällä: Rivi 1803. TY_TE4451 | 012247/19, 21.10.2020 > 6.10.2020. 	24.1.2022 	03:22:04 	ld_calc_ NeedDownDateFromPhase 	(12. Tuotetilannelaskenta)

Kriittinen alkupäivä on suurempi kuin kriittinen päivä: TY_TE4451	012247/19. 	24.1.2022 	03:22:04 	prnc_CR_DATES_IN_ARR_SAVE 	(12. Tuotetilannelaskenta)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.order_date, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_adExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 127, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:22:47 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.032034.oh00b._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	03:22:53 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.order_date, so.project_id, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_adExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:22:54 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:23:38 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:24:19 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:20 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:20 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:20 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:24:22 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:24:23 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:24:27 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:37 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:37 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:38 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:39 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:42 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:43 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:45 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:45 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:47 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:47 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:51 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:24:51 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:24:53 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:24:53 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:24:56 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:24:56 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 77, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 143391, 61731 remaining, total send time 1 µs. 	24.1.2022 	03:24:56 	lx 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:25:03 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:25:04 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:27:48 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:27:48 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:27:49 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_id, pr.transfer_id, pr.name, pr.explanation, pr.sales_price__unit, pr.stock_balance__unit, pr.minimum_stock, pr.ean_code, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7
 - result _lx_atExe1 size: 11930, first value: '_'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	24.1.2022 	03:27:51 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 83, send result: -1, send count: 8, loop count: 8, bytes sent 571620 / 729887, 158267 remaining, total send time 49 µs. 	24.1.2022 	03:27:51 	lx 	(5. palvelin)

 -- tcp answer 83, send result: -1, send count: 9, loop count: 10, bytes sent 653280 / 729887, 76607 remaining, total send time 1293 µs. 	24.1.2022 	03:27:51 	lx 	(5. palvelin)

 -- tcp answer 83, send count: 10, loop count: 11, bytes sent 729887 / 729887, 0 remaining, total send time 2843 µs. 	24.1.2022 	03:27:51 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:27:54 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_id, pr.transfer_id, pr.name, pr.explanation, pr.sales_price__unit, pr.stock_balance__unit, pr.minimum_stock, pr.ean_code, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7
 - result _lx_atExe1 size: 11930, first value: '_'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	24.1.2022 	03:27:55 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 85, send result: -1, send count: 5, loop count: 5, bytes sent 408300 / 731829, 323529 remaining, total send time 49 µs. 	24.1.2022 	03:27:56 	lx 	(5. palvelin)

 -- tcp answer 85, send result: -1, send count: 6, loop count: 7, bytes sent 489960 / 731829, 241869 remaining, total send time 1301 µs. 	24.1.2022 	03:27:56 	lx 	(5. palvelin)

 -- tcp answer 85, send result: -1, send count: 7, loop count: 9, bytes sent 571620 / 731829, 160209 remaining, total send time 2936 µs. 	24.1.2022 	03:27:56 	lx 	(5. palvelin)

 -- tcp answer 85, send count: 9, loop count: 11, bytes sent 731829 / 731829, 0 remaining, total send time 4200 µs. 	24.1.2022 	03:27:56 	lx 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.www, top.net_days, co.telephone_number, co.fax_number, co.info FROM company co  LEFT OUTER JOIN terms_of_payment top ON top.terms_of_payment_id = co.terms_of_payment_id  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_alExe1,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11
 - result _lx_atExe1 size: 827, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	24.1.2022 	03:27:57 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_id, pr.transfer_id, pr.name, pr.explanation, pr.sales_price__unit, pr.stock_balance__unit, pr.minimum_stock, pr.ean_code, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7
 - result _lx_atExe1 size: 11930, first value: '_'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	24.1.2022 	03:28:08 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 87, send result: -1, send count: 4, loop count: 4, bytes sent 326640 / 729887, 403247 remaining, total send time 21 µs. 	24.1.2022 	03:28:08 	lx 	(5. palvelin)

 -- tcp answer 87, send result: -1, send count: 5, loop count: 6, bytes sent 408300 / 729887, 321587 remaining, total send time 1276 µs. 	24.1.2022 	03:28:08 	lx 	(5. palvelin)

 -- tcp answer 87, send result: -1, send count: 6, loop count: 8, bytes sent 489960 / 729887, 239927 remaining, total send time 2898 µs. 	24.1.2022 	03:28:08 	lx 	(5. palvelin)

 -- tcp answer 87, send result: -1, send count: 7, loop count: 10, bytes sent 571620 / 729887, 158267 remaining, total send time 4155 µs. 	24.1.2022 	03:28:09 	lx 	(5. palvelin)

 -- tcp answer 87, send count: 9, loop count: 12, bytes sent 729887 / 729887, 0 remaining, total send time 5890 µs. 	24.1.2022 	03:28:09 	lx 	(5. palvelin)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id LIKE '%' INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id LIKE '%'  ORDER BY inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 123446, first value: '1200804'
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	24.1.2022 	03:28:23 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 88, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 8909660, 8746340 remaining, total send time 72 µs. 	24.1.2022 	03:28:30 	lx 	(5. palvelin)

 -- tcp answer 88, send result: -1, send count: 3, loop count: 4, bytes sent 244980 / 8909660, 8664680 remaining, total send time 1353 µs. 	24.1.2022 	03:28:30 	lx 	(5. palvelin)

 -- tcp answer 88, send result: -1, send count: 5, loop count: 7, bytes sent 359304 / 8909660, 8550356 remaining, total send time 2933 µs. 	24.1.2022 	03:28:30 	lx 	(5. palvelin)

 -- tcp answer 88, send result: -1, send count: 12, loop count: 16, bytes sent 865596 / 8909660, 8044064 remaining, total send time 5918 µs. 	24.1.2022 	03:28:31 	lx 	(5. palvelin)

 -- tcp answer 88, send result: -1, send count: 13, loop count: 18, bytes sent 947256 / 8909660, 7962404 remaining, total send time 7197 µs. 	24.1.2022 	03:28:31 	lx 	(5. palvelin)

 -- tcp answer 88, send result: -1, send count: 16, loop count: 22, bytes sent 1126908 / 8909660, 7782752 remaining, total send time 9034 µs. 	24.1.2022 	03:28:31 	lx 	(5. palvelin)

 -- tcp answer 88, send result: -1, send count: 17, loop count: 24, bytes sent 1208568 / 8909660, 7701092 remaining, total send time 10303 µs. 	24.1.2022 	03:28:31 	lx 	(5. palvelin)

error:  -- tcp answer 88, remaining bytes send failed with result code: -100, bytes sent: 1453548 / 8909660, total send time 12412 µs
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:546: in function 'printError'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:320: in function 'send'
	/Users/pasi/nc/nc-server/lib/server.lua:141: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:123: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:146: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:129>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:66: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:18>]
. 	24.1.2022 	03:28:31 	lx 	(5. palvelin)

error:  -- tcp answer 88, remaining bytes send failed with result code: -100, bytes sent: 1453548 / 8909660, total send time 12412 µs
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:546: in function 'printError'
	/Users/pasi/nc/nc-server/lib/lib_tcp.lua:320: in function 'send'
	/Users/pasi/nc/nc-server/lib/server.lua:141: in function 'answer'
	/Users/pasi/nc/nc-server/lib/server.lua:225: in function 'in_callback'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:248: in function 'poll_event'
	/Users/pasi/nc/nc-server/lib/lib_poll.lua:329: in function 'poll'
	/Users/pasi/nc/nc-server/lib/server.lua:312: in function 'pollLoop'
	/Users/pasi/nc/nc-server/nc/nc-server.lua:123: in function 'server'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:146: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:129>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:66: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:18>]. 	24.1.2022 	03:28:31 	_lx_SERVER 	(5. palvelin)

*** tcp close for sock 89, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	24.1.2022 	03:28:44 	lx 	(5. palvelin)

closing socket '89'. 	24.1.2022 	03:28:44 	lx 	(5. palvelin)

*** tcp close for sock 90, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 190 bytes ***. 	24.1.2022 	03:28:44 	lx 	(5. palvelin)

closing socket '90'. 	24.1.2022 	03:28:44 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:28:48 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:28:53 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id LIKE '20130531.143421.0f00o.in\_ zzy0001b6394d3d809' ESCAPE '\' INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id LIKE '20130531.143421.0f00o.in\_  zzy0001b6394d3d809' ESCAPE '\'  ORDER BY inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	24.1.2022 	03:28:57 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:29:04 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:29:04 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:29:04 	_lx_ExecuteSqlNew 	(5. palvelin)

Sql order field error, order field is not valid: ordr.order_id, sql:
	SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.company_id IN ('1057')
 ORDER BY ordr.order_id, inr.row_number
 INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 	24.1.2022 	03:30:09 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.company_id IN ('1057')  ORDER BY ordr.order_id, inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 236, first value: '1703673'
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	24.1.2022 	03:30:09 	_lx_ExecuteSqlNew 	(5. palvelin)

4d execute sql error -1: Sql order field error, order field is not valid: ordr.order_id, sql:
	SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.company_id IN ('1057')
 ORDER BY ordr.order_id, inr.row_number
 INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5


SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.company_id IN ('1057')
 ORDER BY ordr.order_id, inr.row_number
 INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5. 	24.1.2022 	03:30:09 	_lx_SERVER 	(5. palvelin)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.company_id IN ('1057')  ORDER BY inr.invoice_id, inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 236, first value: '1703673'
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	24.1.2022 	03:31:14 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.www, top.net_days, co.telephone_number, co.fax_number, co.info FROM company co  LEFT OUTER JOIN terms_of_payment top ON top.terms_of_payment_id = co.terms_of_payment_id  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_alExe1,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11
 - result _lx_atExe1 size: 827, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	24.1.2022 	03:31:21 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.company_id IN ('1057')  ORDER BY inr.invoice_id, inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 236, first value: '1703673'
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	24.1.2022 	03:31:22 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:31:26 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:31:26 	_lx_ExecuteSqlNew 	(5. palvelin)

Sql field error, field number is not valid, field: 'co.modify_time', sql:
	SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6
 	24.1.2022 	03:32:02 	_lx_ExecuteSqlNew 	(5. palvelin)

4d execute sql error -1: Sql field error, field number is not valid, field: 'co.modify_time', sql:
	SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6


SELECT co.company_id, co.project_id, co.name, co.name_2, co.creation_date, co.modify_time, co.email, co.record_id
 FROM company co
 WHERE co.transfer_id <> ''
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_atExe5,:_lx_atExe6. 	24.1.2022 	03:32:02 	_lx_SERVER 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 128, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:40:56 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_SiteCode' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = '_code_SiteCode'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: 'ZZY0'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	03:41:08 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = 'code_default.json' INTO :_lx_atExe1
 - original query: SELECT text_value FROM _preference WHERE name_id = 'code_default.json'  INTO :_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '{
  "code": {
    "_CODE_ALFLD": [4002, 4002, 4002, 4013, 4013, 4013, 8011, 8011, 10004, 11005, 17004, 17004, 17004, 17004, 17004, 17004, 21001, 21001, 21001, 21001, 21001, 21001, 26002, 27001, 28008, 28008, 29001, 29001, 31001, 31001, 31011, 32002, 32002, 33001, 37001, 37001, 42001, 43002, 44012, 44031, 44031, 44032, 48036, 50001, 54001],
    "_CODE_ASFLDNAME": ["[Tosite]TUNNUS", "[Tosite]Tosite ID", "[Tosite]TUNNUS", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Tosite]Tositenumero", "[Var'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	03:41:08 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_code_001_so_kSales_Order_ID_' INTO :_lx_atExe1
 - original query: SELECT long_value, change_id FROM _preference WHERE name_id = '_code_001_so_kSales_Order_ID_'  INTO :_lx_alExe1,:_lx_atExe1
 - result _lx_atExe1 size: 1, first value: '20220124.032253.8q00f._prf_zzy0ae544bd03e1d05'
 - query name: new:dsql.sqlExecuteUnsafe. 	24.1.2022 	03:41:08 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 129, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:41:09 	_lx_ExecuteSqlNew 	(5. palvelin)

Taululle ei ole ladattu tietuetta: Myyntitilauksen rivi ([Myyntitilauksen rivi]Tuote). 	24.1.2022 	03:41:46 	_fld VALUE 	(6. tbl_ 5)

4D: SELECT so.record_id FROM sales_order so WHERE so.project_id <> '' AND so.order_date >= '2021-09-01' LIMIT 1000 INTO :_lx_atExe1
 - original query: SELECT so.sales_order_id, so.project_id, so.order_date, so.state, so.company_id, so.sales_price_total, so.vat_total, so.currency_id, so.notes, so.additional_data, so.record_id FROM sales_order so  WHERE so.project_id <> '' AND so.order_date >= '2021-09-01'  ORDER BY so.order_date DESC, so.sales_order_id DESC  LIMIT 1000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_adExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 129, first value: 'R22017'
 - query name: new:form/nc/erp-sync/woocommerce/query-local/order-sales.json. 	24.1.2022 	03:44:27 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:45:34 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:45:34 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:45:34 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_id, pr.transfer_id, pr.name, pr.explanation, pr.sales_price__unit, pr.stock_balance__unit, pr.minimum_stock, pr.ean_code, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7
 - result _lx_atExe1 size: 11930, first value: '_'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	24.1.2022 	03:45:38 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 136, send result: -1, send count: 3, loop count: 3, bytes sent 244980 / 729417, 484437 remaining, total send time 32 µs. 	24.1.2022 	03:45:38 	lx 	(5. palvelin)

 -- tcp answer 136, send result: -1, send count: 4, loop count: 5, bytes sent 326640 / 729417, 402777 remaining, total send time 1288 µs. 	24.1.2022 	03:45:38 	lx 	(5. palvelin)

 -- tcp answer 136, send count: 10, loop count: 11, bytes sent 729417 / 729417, 0 remaining, total send time 2725 µs. 	24.1.2022 	03:45:39 	lx 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.www, top.net_days, co.telephone_number, co.fax_number, co.info FROM company co  LEFT OUTER JOIN terms_of_payment top ON top.terms_of_payment_id = co.terms_of_payment_id  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_alExe1,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11
 - result _lx_atExe1 size: 827, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	24.1.2022 	03:45:41 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.company_id IN ('1057')  ORDER BY inr.invoice_id, inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 236, first value: '1703673'
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	24.1.2022 	03:45:42 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	03:45:57 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	12:45:47 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	12:45:47 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.company_id IN ('1057')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 127, first value: '1300969'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	24.1.2022 	12:45:47 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.company_id IN ('1057') INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.company_id IN ('1057')  ORDER BY inr.invoice_id, inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 236, first value: '1703673'
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	24.1.2022 	12:45:53 	_lx_ExecuteSqlNew 	(5. palvelin)

